Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework: Hide navigation item in menu by show in breadcrumbs

i am using Zend_Navigation i want to show the nav item in the breadcrumbs but hide it in my menu, how can i do that?

like image 756
Jiew Meng Avatar asked Aug 01 '10 13:08

Jiew Meng


2 Answers

There are many choices, e.g.

  • You may set visible parameter to false (eg. in xml config file), then use setRenderInvisible(true/false) on the navigation helper,
  • You may use separate containers,
  • You may modify the container on the fly (getContainer(), getItemBy()…)
like image 64
takeshin Avatar answered Dec 15 '22 00:12

takeshin


When using an XML config file, use an integer instead of a boolean value:

<visible>0</visible>

An issue has already been logged for this problem here.

like image 38
golbarg Avatar answered Dec 14 '22 23:12

golbarg