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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTE<br />

Here is the format for the form custom function<br />

<br />

<br />

Custom PHP Functions<br />

This function is basically the same as the Form function in ASP.<br />

See ”Form Function” on page 441 for details.<br />

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

the syntax for implementing it. The PHP example is below.<br />

<br />

<br />

<br />

<br />

MultiPurpose Function<br />

<br />

As an alternative, you can use the multipurpose function, which can display either<br />

a content block or a content block associated with a form. For more information,<br />

see ”MultiPurpose Function” on page 510.<br />

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

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

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

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

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

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

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

Saved successfully!

Ooh no, something went wrong!