Questions tagged [zend-navigation]

Zend_Navigation is a component for managing trees of pointers to web pages , on Zend Framework

Zend\Navigation is a component for managing trees of pointers to web pages.

Simply put: It can be used for creating menus, breadcrumbs, links, and sitemaps, or serve as a model for other navigation related purposes.

Source

201 questions
10
votes
3 answers

How do I extend the Zend Navigation Menu View Helper?

I need to change the output of Zend_View_Helper_Navigation_Menu. I've found the two functions that I'll need to modify, and I know how to make the changes I need. What I don't know is how to make the Navigation object use my view helper instead of…
Sonny
  • 8,204
  • 7
  • 63
  • 134
9
votes
2 answers

Zend_Translate - Zend_Navigation and Routing combination problem!

I'm having some difficulties with the combination of Zend_Navigation, Zend_Translate and the routing needed. My site navigation is done through Zend_Navigation based on and XML file. I've now added translation to the site based on Zend_Translate and…
8
votes
2 answers

Custom rendering of Zend_Navigation

I am using a navigation XML file in conjunction with my Zend Framework MVC app. A top level menu is rendered at the top of my layout. The code to produce it looks like this: $this->navigation()->menu()->renderMenu(null,array('maxDepth' => …
Andy Baird
  • 6,088
  • 4
  • 43
  • 63
7
votes
2 answers

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?
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
6
votes
1 answer

Zend navigation with XML file

dashboard index accounts index
gihan
  • 175
  • 1
  • 6
6
votes
2 answers

Zend Navigation: current page

There is a method isActive() in Zend_Navigation. But it returns true for all the elements in the current path (parent li is active and all the children too, even when the current is parent li). Is there any method like isCurrent(), to determine…
takeshin
  • 49,108
  • 32
  • 120
  • 164
5
votes
4 answers

Zend navigation and Zend ACL

I am working with Zend Acl and Zend Navigation. I am setting up the navigation in the bootstrap. I am trying to have links not show if the user doesn't have access to the resource. I have read several tutorials, gone through the zend reference…
JoeyD473
  • 2,890
  • 2
  • 21
  • 25
5
votes
2 answers

Where should I populate my Zend_Navigation container?

Where in my application should I define my top level and lower-level pages for use by Zend Navigation? My top level navigation bar view helper is going to be separate from the view helper that generates the sub navigation.
Chris Laplante
  • 29,338
  • 17
  • 103
  • 134
5
votes
2 answers

PHP RecursiveIteratorIterator: Determining first and last item at each branch level

I have extended Zend_View_Helper_Navigation_Menu, and it uses a RecursiveIteratorIterator to iterate over the menu tree. What I want to be able to determine is whether I am on the first or last item for a branch level in the tree. Here's an example…
Sonny
  • 8,204
  • 7
  • 63
  • 134
4
votes
2 answers

Adding a CSS Class to the inner pages of Zend Navigation

Is it possible to add a CSS class to the inner pages within a Zend Navigation? I am trying to implement twitter bootstrap navigation dropdown Thanks!
somejkuser
  • 8,856
  • 20
  • 64
  • 130
4
votes
1 answer

zend navigation breadcrumbs to bypass ACL

I make use of Zend_Navigation and its menu helper and breadcrumbs helper together with Zend_Acl. This all works as expected. But is it possible to ignore the acl on the breadcrumbs only? My goal is to render a different view when access is denied on…
4
votes
4 answers

ZF3 Navigation "plugin" error

Following https://docs.zendframework.com/zend-navigation/quick-start/, i try to make a navigation for my application. I registered a navigation, i added the DefaultNavigationFactory to the service-manager, but i get an error when i try to print the…
user2501247
  • 109
  • 8
4
votes
1 answer

Only render part of Zend_Navigation object in a menu

I have a number of navigation menus within my layout. A main menu and a sub-menu. When clicking on an item on the main menu it shows which item is Active. When loading a page in a sub menu, the main menu loses it's context and doesn't show which…
Jonny White
  • 875
  • 10
  • 21
4
votes
2 answers

Zend_Navigation failing to load

Following on from my earlier question, I am still having issues with loading the xml file into Zend_Navigation. I am now getting the following error message: Fatal error: Uncaught exception 'Zend_Navigation_Exception' with message 'Invalid…
Grant Collins
  • 1,781
  • 5
  • 31
  • 47
4
votes
2 answers

Zend Framework - Correct way of defining navigation menu

i am using a template for which there are two different navigation menu. Main navigation menu. ( fixed ) Action navigation menu, contains elements such as back, save, delete etc. this navigation elements changes according to the controllers…
Ibrahim Azhar Armar
  • 25,288
  • 35
  • 131
  • 207
1
2 3
13 14