Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2007 at 09:36 UTC
Updated:
6 Oct 2009 at 13:57 UTC
According to the issue #34755 the menu system was reformulated for 6.x
These are some features, that (if still not addressed) can make the menu system much more configurable.
The menu system:
Comments
Comment #1
chx commentedFull menu generation -- good idea. Code it, make it so that if the _to_arg function returns an array then it will iterate them. I will not code it, though.
Breadcrumbs -- when they will be readded they will be as close to current as possible per Dries' request. later on, I would like to see breadcrumbs built from tokens of some form.
the others 1,3,6 need further explanation I think.
Comment #2
magico commentedHi chx! Thanks for your response.
I made some code with fully menu generation in 4.6. Perhaps I should create a specific issue to develop my ideas, get your help and after studying your menu system I can code something.
Let's assume the following structure as an example:
1. When designing a site, the webdesigner can create a theme where he wants to show sections. For example, he wants that whenever a user is inside a particular "news", the page should show the section name "News" and the the specific news title ("news 1").
What he needs to accomplish this is, that the particular "node" is aware of it's position within the menu system, so he can calculates the parent menu. If the parent menu title is the same of the node we don't show the "particular title" (eg. company)
Resuming, he needs a function menu_get_parent(level) to calculate this.
3. See the products as examples. When we are in the home, we have the primary menu: home, company, products, news, contact.
When we click "products", it should generate the same primary menu but also the secondary menu: category 1, category 2
If we click "category 1" it will generate the original primary menu, but the secondary menu is "product 1" and "product 2"
6. "LOCAL TASKS" could be available as a special option of the menu system. There are times when we need to reorganize tabs, hide or just disable them.
By default, whenever a user does not have access to a specific tab it will be hidden. The idea here is to allow the visibility of the tab, but if the user does not have access to it (because he needs to do something first), it will be disabled.
Example: we have a form with a "product". That form has several tabs for different tasks. To access (and edit the content of one tab) the user should know that he must do something else first in another place.
Comment #3
dropcube commentedMoving feature request to 7.x-dev
Comment #4
sunThe scope of this issue is too broad to achieve something. Most if not all of the listed points are already tackled in other issues - please use the search to find them.