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.

Custom PHP Functions<br />

If the user clicks a graphic to invoke the menu, use this syntax:<br />

<br />

For example:<br />

<br />

Customizing the Menu’s Appearance<br />

ek_Menu.js<br />

XML Menu Function<br />

You can customize a menu’s appearance, such as the font style,<br />

color, and size. So, you have the flexibility to coordinate a menu<br />

with the design your Web site.<br />

To customize a menu in <strong>Ektron</strong> <strong>CMS400.NET</strong>, you can change the<br />

ek_Menu.js file.<br />

You can change the look and feel of a menu by changing the<br />

ek_menu.js file. If you used the default settings when installing<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong>, this file is in webroot/CMS400Example/<br />

Workarea/java/. For a description of the ek_menu.js file, see<br />

”ek_Menu.js” on page 456.<br />

The ecmGetMenuXML function wraps XML around the properties<br />

of a menu created in the <strong>Ektron</strong> <strong>CMS400.NET</strong> Workarea. Once<br />

created you can use the XML to display the menu. The<br />

ecmGetMenuXML function allows you to easily define how the<br />

menu data appears on the Web page.<br />

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

ASP. See ”XML Menu” on page 459 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 />

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

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

Saved successfully!

Ooh no, something went wrong!