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
1
vote
1 answer

Zend: How can I globally set the current navigation item?

config: resources.frontController.plugins.nav = "WD_Controller_Plugin_Nav" bootstrap: protected function _initAutoloader() { $loader = Zend_Loader_Autoloader::getInstance(); $loader->registerNamespace('WD_'); return $loader; } protected function…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
vote
1 answer

ServiceNotCreatedException in Zend Framework 2 while attempting multiple navigations

I am attempting to create multiple navigation menus to use in my application based on a specific user role. The majority of the code is similar to zfc-admin. When I use zfc-admin in my application I am able to bring up an admin menu, however I will…
livearoha
  • 169
  • 1
  • 12
1
vote
1 answer

Append to Zend\Navigation

In my application I have a global navigation. In each module, depending on module state etc I attach elements to navigation. The simplified code in Module.php: public function onBootstrap(MvcEvent $e) { $navigation =…
Tomek Kobyliński
  • 1,290
  • 14
  • 25
1
vote
2 answers

ZF2 Breadcrumbs with dynamic content

How can I create breadcrumbs with dynamic content in ZF2 using Zend Navigation and the Breadcrumbs view helper? For example: Home -> People -> John Doe In this case "John Doe" is the profile page you are currently viewing which is loaded with a uri…
1
vote
1 answer

How to change submenu active class in zend navigation?

I am using zend navigation to create menus. I want to change the default class 'active' to 'selected' and I also want to add the class to anchor tag for active link. Here is my sample code which I have put in bootstrap protected function…
Swapnil T
  • 557
  • 7
  • 17
1
vote
1 answer

Zend_Navigation - set menu item to visible in controller?

Zend_Navigation question I want a menu item to only be visible if certain conditions apply. So initially in my nav.xml I have ...0 Is it possible to set item_one to visible in controller->init() if a…
1
vote
3 answers

Zend\Navigation breadcrumb doesn't find active elements

i've got my navigation running and all links are working fine. Rendering the Navigation using $this->navigation($nav)->menu() will display an unordered list and all links are working. Additionally the active link there is working, too. The active…
Sam
  • 16,435
  • 6
  • 55
  • 89
1
vote
3 answers

Getting active module for navigation in Zend Framework 2

I'm using the Skeleton Zend Framework 2 to build my application. I'd like to modify the current navigation bar in layout.phtml to show 2 links as standard, then some more links based on user permissions. How would I go about getting the active…
bear
  • 11,364
  • 26
  • 77
  • 129
1
vote
1 answer

Should my Zend navigation menu be explicitly cached?

Ok, so I am using Zend Framework 1.12 with Doctrine 2.2.3. The Zend_Navigation class is too simple and static for my liking, so I am implementing my own navigation class. The scenario is as follows: My application requires the navigation menu to be…
Blyde
  • 2,923
  • 2
  • 18
  • 16
1
vote
1 answer

Zend navigation rendering issue

This is my navigation XML format, there are 2 user levels in the system, Admin and Super Admin, When login as Admin all the menu items should be displayed and it works fine, for Super Admin only the Dashboard and statistics should be displayed. My…
Shaolin
  • 2,541
  • 4
  • 30
  • 41
1
vote
2 answers

Zend Navigation issue

I'm using Zend navigation to display menu items on the site. in below bootstrap function, what does it mean by 'layout' in $this->bootstrap('layout') ? Is it layout file name with path ?, since i have several modules, its bit confusing. protected…
Shaolin
  • 2,541
  • 4
  • 30
  • 41
1
vote
1 answer

Zend Navigation routes in xml config not using passed in parameters

I have a route: resources.router.routes.page.route = "page/:page" resources.router.routes.page.defaults.module = "core" resources.router.routes.page.defaults.controller = "page" resources.router.routes.page.defaults.action =…
somejkuser
  • 8,856
  • 20
  • 64
  • 130
1
vote
1 answer

Zend_Navigation and Zend_Acl for URI's pages

I am trying to combine Zend_Navigation and Zend_Acl for URI pages, in a standalone fashion (i.e. only these ZF libraries). Unfortunately, even if I mean for a role not to see some pages, I see them in the menu (although if I call isAllowed, all…
JoeSlav
  • 4,479
  • 4
  • 31
  • 50
1
vote
2 answers

Multiple actions triggered from navigation.xml

We have a strange issue with the navigation xml, here's a snippet: ... mine registration
SimonV
  • 76
  • 4
1
vote
1 answer

how to add class to ul element by using zend navigation?

i've got a simple navigation menu like this: $container = new Zend_Navigation(); $container->addPage(array( 'label' => 'Page 1', 'uri' => 'page-1', 'foo' => 'bar', 'pages' => array( array( 'label' => 'Page…
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337