I was wondering is there a way to render Zend_Navigation dependent on the
current module/controller/action?


For example, take the following configs for ZN Resource

resources.navigation.pages.index.label = "Index"
resources.navigation.pages.index.controller = "index"
resources.navigation.pages.index.action = "index"
resources.navigation.pages.index.pages.foo.label = "Foo"
resources.navigation.pages.index.pages.foo.controller = "index"
resources.navigation.pages.index.pages.foo.action = "foo"
resources.navigation.pages.index.pages.bar.label = "Bar"
resources.navigation.pages.index.pages.bar.controller = "index"
resources.navigation.pages.index.pages.bar.action = "bar"

The above would create the following urls

/index
/index/index/foo
/index/index/bar


Can the resource be configured to only show the "bar" action link i.e.
"/index/index/bar" in the menu when and *only* when the current controller
is "index" and the current action is "bar"?
-- 
View this message in context: 
http://www.nabble.com/Rendering-Zend_Navigation-menu-with-items-dependent-on-module-controller-action-tp23697631p23697631.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to