zendframework / zend-navigation

Navigation component from Zend Framework
BSD 3-Clause "New" or "Revised" License
20 stars 25 forks source link

Improvements #7

Closed sebfek closed 6 years ago

sebfek commented 8 years ago
froschdesign commented 8 years ago

Better support for dynamic builded navigations instead hardcoded configuration array

It is very simple: Create an own factory. For version 3 we should introduce a provider concept for the pages.

Put the different dynamic navigations factories to an own plugin manager (maybe)

And then? Where is the benefit?

Support to set the default active page. Example: Mypage - /test -> Should point to Mysubpage 1 Mysubpage 1 - /test/page1 Mysubpage 2 - /test/page2

  • Foo
  • Bar
  • Baz

If "Foo" is active, then should "Bar" and "Baz" also active?

Make the Mvc (Page) more compact and move the logic (example isActive) to the Navigation class.

RouteMatch is only important for the Mvc page type. Why would you move this to the navigation class?

The View Helper Navigation\Menu renderPartial method shold accept additional parameters you want to pass to the partial.

This is already implemented.

froschdesign commented 6 years ago

Closing due inactivity.