Zend Framework: Hide navigation item in menu by show in breadcrumbs
Asked Answered
C

2

7

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?

Complect answered 1/8, 2010 at 13:27 Comment(0)
G
11

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()…)
Grafting answered 2/8, 2010 at 19:53 Comment(0)
T
4

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.

Tryptophan answered 20/6, 2011 at 13:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.