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
2
votes
2 answers

Zend Navigation, how can i use it with params in the url ? I tried it with params in navigation without changes :(

I have got a problem with the zend navigation. I use the zend navigation, and its ok when i call something like this in the url: www.website/article_new, www.website/article_list, www.website/friends_new, ... But I want to call the site with some…
Tomtom33
  • 43
  • 3
2
votes
3 answers

Zend_Navigation: Getting Only the Pages Accessible by the Current User/Role

I have a Zend_Navigation running with data provided by a navigation.xml file. Let's assume the first level (0) consists of two pages, Frontend and Backend. Frontend is accessible by the guest role, Backend only by the admin role. If I do a
jgxvx
  • 352
  • 3
  • 11
2
votes
1 answer

Zend_Navigation incompatible with Zend_Router when writing controller/actions?

Novice Zend Framework developer here trying to figure out a simple solution to a Zend Routing problem. I'm sure one of you pros can lend a hand. I have a website (built in Zend Framework using Zend_Navigation) that contains 75% static HTML page…
2
votes
0 answers

Help to set up Zend navigation based on own file structure

I am quite new to ZF, and I have got to follow a company file structure and set up Zend Navigation upon it. I have got a included script like this:
user597660
  • 21
  • 1
2
votes
3 answers

Rendering Active Branch of Zend Navigation Without Top Level

I am rendering the top-level elements of a Zend Navigation object in one place like this: echo $this->navigation()->menu()->setMaxDepth(0); How do I render the navigation tree from the second level on down for the active branch? I've tried…
Sonny
  • 8,204
  • 7
  • 63
  • 134
2
votes
1 answer

Zend Navigation and RBAC

I am developing a ZF2 based site. I have a main navigation which stays same regardless of the visitor/user status. Need to add another component/nav, which will depend on the user's status and role. For a visitor the items will be Register Login EN…
M Hill
  • 225
  • 2
  • 6
2
votes
1 answer

Zend Navigation, ACL and Partials

I have Zend Navigation object with Acl and Roles: echo $this->navigation()->menu('navigation') ->setAcl($this->acl) ->setRole(($this->user ? 'user' : 'guest')) ->render(); and its work perfectly (hides some pages) BUT when i use custom…
Tomek Kobyliński
  • 1,290
  • 14
  • 25
2
votes
2 answers

ZF2 - Injecting pages to navigation before controller is called

I'm creating a dynamic Application in which the content is added through a CMS. Inside the CMS, I'm setting a db entry which states what module to use for each content page. NodeId, ParentNodeId, Name_de, Name_en,…
2
votes
2 answers

ZF2: How to get Zend\Navigation inside custom route?

I have custom router and I have to get access to Zend\Navigation inside this custom router. I was googling, asking and searching and no results :/ All I need is to find nodes with 'link' param using Zend\Navigation in my Alias::match function. Here…
mkatanski
  • 508
  • 6
  • 19
2
votes
1 answer

Zend_Navigation submenu UL class set?

I am using Twitter Bootstrap on a project and their navigation system is quite awesome. The issue is that I need Zend_Navigation to set the UL class on submenus and Im not able to achieve that. I have a plugin that on postDispache do this: $layout =…
2
votes
1 answer

Zend Framework Navigation, escape option to view html within a title?

Alright, I can't find this option anywhere. I'm generating Zend Navigation through the database and into an multi-dimensional array through recursion, cake. So, some of these titles have html in them or html special chars. So, why can't I find…
wesside
  • 5,622
  • 5
  • 30
  • 35
2
votes
1 answer

Zend Navigation showing all items in menu

I'm just not getting this; I'm using a standard XML-based Zend_Navigation impl, right out the box so-to-speak - and every page seems to have every menu option. I've tried everything - activeOnly, renderSubMenu, renderParent but they all return my…
MikeB
  • 577
  • 5
  • 15
1
vote
2 answers

Zend Navigation Uri and BaseUrl

I am setting up zend navigation in my website and I've got a issue while developing locally. My navigation.xml
dextervip
  • 4,999
  • 16
  • 65
  • 93
1
vote
1 answer

Zend Framework double class menu active

I make a menu with Zend_Navigation. The trouble is that I detect a few times "active menu" that is, the "li" of the current page. Here is my navigation.xml
Raphaël
  • 1,141
  • 3
  • 18
  • 32
1
vote
1 answer

Reset Zend_Navigation state

I am currently building an application where I have multiple ways to access the same controller. E.g.: Presenters -> access controller user/index with param user_type : presenters Attendees -> access controller user/index with param user_type :…
JF Dion
  • 4,014
  • 2
  • 24
  • 34