Hi everyone,
I used Zend_Navigation to display a menu with several items, and for each
item the corresponding submenu.
I used an XML file to manage the menu/submenu structure.
The problem is when I have a link inside a page which links to a controller
and an action, i have to declare it into the XML file in order to display
the menu.
For example I have :
[CODE]
<parent>
<label>PARENT</label>
<controller>parent</controller>
<action>index</action>
<id>id_parent</id>
<pages>
<sub1>
<label>SUB_1</label>
<controller>parent</controller>
<action>index</action>
<id>id_sub_1</id>
</sub1>
<sub2>
<label>SUB_2</label>
<controller>parent</controller>
<action>sub2</action>
<id>id_sub_2</id>
</sub2>
</pages>
</parent>
[/CODE]
This will display the parent menu and the submenu. Then I have a link in a
page which should not be displayed as a menu link and should bring me at for
example : (...)/parent/sub3
To keep the menu displayed I should mention in my XML file the following
code in the <pages>
[CODE]
<sub3>
<label>SUB_3</label>
<controller>parent</controller>
<action>sub3</action>
<id>id_sub_3</id>
</sub3>
[/CODE]
If not mentionned I'll lose my submenu.
Is there any way to keep the menu displayed ? Without using some Css tricks
Thanks for help,
--
View this message in context:
http://www.nabble.com/Zend_Navigation-and-XML-file-tp25680427p25680427.html
Sent from the Zend Framework mailing list archive at Nabble.com.