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.

NOTE<br />

Metadata Function<br />

<br />

Custom PHP Functions<br />

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

Content Block” on page 494.<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 function is used to display the metadata for one or<br />

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

Inserting this custom function allows you to generate the list of<br />

metadata that is edited by the authors, and insert it in the source of<br />

the Web page. Shown below is an example of what the metadata<br />

custom function looks like.:<br />

<br />

This function is basically the same as the Metadata function in<br />

ASP. See ”Metadata Function” on page 445 for details.<br />

The only difference between the PHP function and the ASP one is<br />

the syntax for implementing it. The PHP examples are below.<br />

To include both content blocks’ metadata in the web page, an<br />

ecmMetadata call would look like this.<br />

<br />

<br />

<br />

<br />

(rest of head)<br />

(rest of web page document)<br />

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

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

Saved successfully!

Ooh no, something went wrong!