Multiple menu items per node with category_menu

Category_menu currently only ever creates one menu item per node, whether that node is a containeri, a categoryi, or an assigned nodei. If the node is a container or a category and it has multiple parentis, then the parent with the lightest weighti is used as the menu item parent. If the node is an assigned node, then the category assigned to it with the lightest weight is used as the menu item parent.

But this is not ideal - category_menu can do better. It is possible to enhance category_menu to support creating a menu item for every parent (or assigned category) of every node that it manages. The core menu system in Drupal 4.7 has support (albeit poorly documented) for 'menu shortcuts' - that is, multiple menu items for a single Drupal path. I believe that the way it works is that the first menu item created is treated as the 'primary' menu item, and this item is the one used for breadcrumbs (much like the first alias created for a path is treated as the 'primary' alias, which is used for outputting links).

This feature would not have any impact on breadcrumbs or on navigation links, as there is no way to represent multiple parents in these elements. It would also have no impact on table of contents, as this element already supports multiple parents (since it's generated purely by category_display, and is not dependent on category_menu). However, it would have an impact on menu links, that are displayed either in a side block, or in the primary/secondary links area.

Since this feature would add significant overhead to the maintenance of category-related menu items, I'm thinking of making it a feature that can be disabled.

Status Update ?

Hi,

Could you please inform us with the updates on this feature.

Currently I'm facing this limitation with such hierarchyi.

Content [Cont]
-- Lessons [Cat]
---- Scholars [Cat]
------ Mr.Smith [Cat]
-------- HowToCookSpaghetti [Cat]
---- Topics [Cat]
------ Cooking [Cat]
-------- HowToCookSpaghetti [Cat] (This is the same as the one above)

Now when you access the HowToCookSpaghetti, the menu item appears under Mr.Smith and not under Cooking.

Also the breadcrumbs switch automatically to show Content->Lessons->Scholars->Mr.Smith regardless of wether you accessed it from Mr.Smith or Cooking.

I know this has to do with the lightest weighti issue. But could you help me on this issue please ?

Thankyou for your great support and thanks for this great module.

Maher ;-)

No plans

I have no plans to develop this feature in the near future. I don't know of anyone else who is planning to help with developing it either.

Jeremy Epstein - GreenAsh