Ektron CMS400.Net Reference

>>Using Other Development Frameworks > CustomJSPFunctions > Collection Function

Collection Function

The collection function is used to display the list of links that were created as a collection in the Ektron CMS400.NET Workarea. The ecmCollection function is highly customizable, allowing you to easily define how the collection data will be displayed on the Web page.

Shown here is the format of the ecmCollection function.

<%= ecmCollection(int id, String “displayFunction”) %>

This function is basically the same as the Collection function in ASP. See Collection Function for details.

The only difference between the JSP function and the ASP one is the syntax for implementing it.

Collection Sample

Here is an example of the Collection function in an Ektron CMS400.NET template.

<tr>

<td>

<%= ecmCollection(24, “ecmTeaser”) %>

</td>

</tr>


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.