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_Navigation XML structure (Dashboard page)

is there any method to create page strucutere with Zend_Navigation (xml) like this: - 1. Dashboard - - 1.1 New article - - 1.2 New user - - 1.3 New products - 2. Articles - - 2.1 New article - - 2.2 Reviews - 3. User - - 3.1 New user - - 3.2 Etc…
1
vote
2 answers

Passing url parameters to Zend_Navigation using an XML-file

I am using Zend Framework 1.10.8. I want to create a breadcrumb section in my layout.phtml. There are some links in my menu that have dynamic url parameters like http://mydomain.com/editor/edit/id/42 I try to figure out how to pass id=XXX to…
herrjeh42
  • 2,782
  • 4
  • 35
  • 47
1
vote
1 answer

Zend Framework and custom Navigation Containers

In Zend's Documentation they write about creating Navigation Containers. But they don't explain where I should create them. Does anyone know that? I'm also wondering if a custom Navigation Container extends or overwrites the navigation.xml file…
Wouter Dorgelo
  • 11,770
  • 11
  • 62
  • 80
1
vote
0 answers

How can I remove a page from zend-navigation?

I am trying to remove a page from zend-navigation but it does not appear to get removed. if (!$task->getMilestone()) { $navigation = $this->getServiceLocator()->get('Navigation'); $page = $navigation->findOneBy('id', 'milestone_edit_task'); …
srayner
  • 1,799
  • 4
  • 23
  • 39
1
vote
1 answer

ZF2 - Active
  • in Zend Navigation Menu
  • I've managed to generate menu using Zend Navigation. However, the active page is never set (active class is not set for any
  • element). My partial: foreach ($pages as $page): ?> isVisible() ||…
  • DavidL
    • 1,120
    • 1
    • 15
    • 34
    1
    vote
    0 answers

    ZF2 Navigation active class not working

    I have a problem with a active class using zend navigation. I don't know reason of this problem. Anyone know how to fix this or what I'm doing wrong? when I use this route 'default' => array( array( 'label' => '
    MrMorf
    • 33
    • 4
    1
    vote
    2 answers

    Zend_Navigation with hidden pages

    I have my Zend_Navigation loaded from a PHP array (but that's irrelevant...) and I'm using the navigation menu helper to generate a menu based on the loaded navigation. Some menu items must not appear in the outputted menu, so I simply set…
    Yanick Rochon
    • 51,409
    • 25
    • 133
    • 214
    1
    vote
    1 answer

    Denying access to action with Zend ACL causes Navigation link to disappear

    I have a schedule controller with four actions: class ScheduleController extends Zend_Controller_Action { public function indexAction(){ ... } public function viewAction(){ ... } public function addAction(){ ... } public function…
    1
    vote
    0 answers

    ZF2 - Adding pages to navigation from ViewHelper

    I'm creating a dynamic navigation which content is obtained by URL. To this I've created a ViewHelper in which one I work with my URL and prepare it to create the pages to my navigation. foreach($associativeArrayUrl as $key => $value) { …
    Dani Tome
    • 473
    • 1
    • 5
    • 16
    1
    vote
    0 answers

    how to create dynamic navigation in zend frameworks 2

    i am new to the zend framework and using zend framework2. I have to create dynamic navigation(fetching menu from the database) in zend framework2? I searched it out alot but i am not able to do that.
    Azhar Ahmad
    • 86
    • 1
    • 6
    1
    vote
    0 answers

    How can I inject additional child view into layout, that modules can override?

    In my layout I would like an additional child view to render a menu. So in my layout I have; menu; ?> Then in my config under the view manager template_map key I have; 'navigation/menu' => __DIR__ .…
    srayner
    • 1,799
    • 4
    • 23
    • 39
    1
    vote
    2 answers

    Zend Navigation add extra id

    I made a menu with zend_navigation, using an ini file. That work well. If I look at the code, i see that zend has added a class, to the ul element. With a name that i use in my ini file. But now I want to add also a id to the ul element. How can I…
    lander
    • 141
    • 1
    • 4
    • 13
    1
    vote
    0 answers

    Adding Parameters to Zend_Navigation

    I have a problem with Zend_Navigation that I am hoping for a little guidance on. I'm in the process of adding a Zend_Navigation to a legacy app as described [here on SO].1 The thing that I am not sure of is how to add parameters to the navigation…
    Grant Collins
    • 1,781
    • 5
    • 31
    • 47
    1
    vote
    3 answers

    Zend_Nav in zend framework issue getting menu to show up

    I have the following problem, using zend framework, specifically zend_nav to create a reusable menu to be passed in via the layout/layout.phtml page. These are the code fragments in their respective files. first of in…
    1
    vote
    1 answer

    Add Zend_Navigation to the View with old legacy bootstrap

    I've been struggling with Zend_Navigation all weekend, and now I have another problem, which I believe has been the cause of a lot of my issues. I am trying to add Zend_Navigation to a legacy 1.7.6 Zend Framework application, i've updated the Zend…
    Grant Collins
    • 1,781
    • 5
    • 31
    • 47