I have a presistent requirement which causes me problems when using Zend Navigation. A simplified example would be a system which has a database entity like "albums", for which the user needs a "list", "add", "edit" and "delete" page. The "list" and "add" pages are included in the menu system, but the "edit" and "delete" pages, being specific to an particular "album" are linked to from the "list" page.
The issue is that navigating to an "edit" or "delete" page causes the "albums" menu branch to go inactive. Obviously this is because those pages are not in the navigation hierarchy.
I'm looking for:
- A good way to put these pages in the navigation hierarchy, but not display them.
- A way to define the currently active branch from within the controller, so that I can keep the appropriate branch of the menu active.
- A method I have not thought of which accomplishes this.
Thanks