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.

<br />

MultiPurpose Function<br />

Custom ColdFusion Functions<br />

The ecmMultiPurpose function displays either a content block or<br />

an content block associated with a form. As a result, you can use<br />

one template to display both types of content block.<br />

Here is the format for the Multipurpose function<br />

<br />

NOTE<br />

Metadata Function<br />

To pass in a standard content block, pass the id value in the url<br />

parameter, as illustrated below.<br />

http://localhost/CMS400Example/index.asp?id=2<br />

To pass in a Form content block, pass the ekfrm value in the url<br />

parameter, as illustrated below.<br />

http://localhost/CMS400Example/index.asp?ekfrm=2<br />

For more information about passing the id value as a url parameter, see ”Dynamic<br />

Content Block” on page 465.<br />

If the id value or ekfrm value does not exist, a blank template<br />

appears.<br />

If the url parameter is not passed in or recognized, the function<br />

calls ecmContentBlock and passes the DefaultID value as the id<br />

argument. If the DefaultID value is zero (0), ecmContentBlock is<br />

not called.<br />

The metadata tag is used to display the metadata for one or more<br />

content blocks in the <strong>Ektron</strong> <strong>CMS400.NET</strong> Web site. Inserting this<br />

custom tag will allow you to generate the list of metadata that is<br />

edited by the authors, and insert it in the source of the Web page.<br />

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

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

Saved successfully!

Ooh no, something went wrong!