15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Function ecmTeaser(cInfo)<br />

dim html, info<br />

Custom ASP Functions<br />

The format of the collection on the Web page depends on the<br />

displayFunction that is used. Below is the source code for the<br />

display function ecmTeaser.<br />

html = ""<br />

for each info in cInfo<br />

next<br />

html = html & ""<br />

html = html & Cstr(info("ContentTitle"))<br />

html = html & "&nbsp;("<br />

html = html & info("DateModified")<br />

html = html & ")"<br />

html = html & Cstr(info("ContentTeaser"))<br />

html = html & "&nbsp;"<br />

html = html & ""<br />

ecmTeaser = html<br />

end Function<br />

As you can see, the ecmTeaser function is an ASP function that<br />

creates a table of links to the specified collection. The ecmTeaser<br />

function displays the:<br />

• Content title<br />

• Date modified<br />

• Content block summary<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 423

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!