Forums / General / menu function still exists ?
H-Works Agency
Tuesday 14 February 2006 1:22:55 pm
Does the menu function still exists ? What to use instead if its not the case ?
Its not documented anymore and i can't pass variables to it ? Is this normal ?
Thanx - Martin
EZP is Great
Neidy Tunzine
Tuesday 14 February 2006 11:10:40 pm
Hi Martin!!
The menu function still existis you can have it documented in the link bellow:http://ez.no/products/ez_publish_open_source_enterprise_cms/documentation/reference/template_functions/gui/menu
A simple way to pass variables to the template that shows the menu is defining the variable before calling the menu function. Example:
{def $home_path=array( hash('text','Home','url','/content/view/full/2','url_alias','','node_id','2'))} {menu name=LeftMenu}
In this case the variable $home_path will be avaliable for the .template.
http://www.mzbusiness.com