Hi
I want to use the navigation helper to build my navigation menus using Acl. The Acl part I have working fine.
I now want to be able to display a few different types of navigation. E.g. admin-nav, side-nav, new-nav, etc. I cannot find anything about this in the docs. Only how to set the navigation and then use that one navigation object repeatedly within a layout or view.
I tried something similar to this - having two different containers, with different arrays of pages, then setting these containers in the registry. Then from within my view and/or layout calling navigation and passing it a container:
<?php echo $this->navigation(Zend_Registry::get("news-nav")) ?>
The above is called in my news view, the following is called in my layout
<?php echo $this->navigation(Zend_Registry::get("admin-nav")) ?>
This works fine for all my pages, apart from the news page. On my news page the nav for news is displayed twice, once in the layout and once in the news view. The admin nav is never displayed and seems to be overwritten by the news nav.
I could be going about this completely the wrong way, if so please let me know a better way. If this method seems fine, can someone help me sort out why the news nav is being displayed in the layout and in the news view.
Thanks for your time
Jake