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 />

global $html, $info;<br />

Custom PHP Functions<br />

As stated earlier, the format of the collection on the Web page<br />

depends on the displayFunction that is used.<br />

Shown below is the source code for the display function<br />

“ecmTeaser”<br />

$html = "";<br />

$mycount = $cInfo->count();<br />

for ($iloop=0; $iloop < $mycount; ++$iloop) {<br />

$info = $cInfo->Item($iloop+1);<br />

$html = $html."Item("ContentLinks");<br />

$html = $html."\" >";<br />

$html = $html.$info->Item("ContentTitle");<br />

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

$html = $html.date("m/d/Y g:i:s A", $info->Item("DateModified"));<br />

$html = $html.")";<br />

$html = $html.$info->Item("ContentTeaser");<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!