EkML Example

By customizing the provided EkML templates, you can create a custom layout for the content you are displaying. For example, if you have a collection and you want to display it as a numbered list containing a content’s hyperlink, the date it was last updated and its summary, you would create the following .ekml file and assign that file to a Collection server control’s MarkupLanguage property.

—Code—
<ekmarkup>
  <ekoutput>
  <table width="100%"  border="0">
  <ekrepeat>
  <tr>
  <td> [$Index]. [$HyperLink] Updated:<i>[$DateModified]</i><br/>[$Teaser] <hr/>
  </td>
  </tr>
  </ekrepeat>
  </table>
  </ekoutput>
</ekmarkup>

When the Collection appears, it is formatted as follows.

Because you can use HTML in the Ektron Markup Language, you can format the variables using common HTML tags.