I am using Category in my site because i need the powerful and automatic site organisation features, menu building and integration with Pathauto, because the site will not be maintained by myself but by a small group of "civilians" :P I am also using Category to build TOCs etc.

I was trying to force nodes of type 'page' to be added to a menu, and i thought i could assign parent menus to individual categories not just to the containers. The problem is that some pages need to be assigned to Primary Links, some to Secondary Links, some to other custom menus, but all to one menu.

I need a feature that allows different menus to be assigned to different categories within a container, alternatively some way to require one category from atleast one of the containers x, y or z for each page (eg. Add the option 'Required (unless already categorised as...)' to the container edit form)

I can contribute code if someone can point me in the right direction ie. where to start, although my php leaves a lot to be desired.

Ps. if what I am asking is already possible I apologise, but i have checked the docs and the forums, i swear :P I also found http://drupal.org/node/120480 which requests parent menus per container, this is now possible unless I am very much mistaken, I would like some way to have multiple menus for one container.

Comments

Jonaboff’s picture

I am still stuck on this one - it is a feature requested by the client. If Category cannot do this can anyone recommend a module that makes adding to a menu compulsory for nodes?

Jaza’s picture

Category: feature » support

It is not possible to have multiple menus used for the categories within one container. If you have some categories within a container that you'd like to move to a different menu, then my suggestion would be to move those categories to a new container, to make that new container hidden, and to then make that container the distant parent of one of the categories in your original container.

You can then achieve a structure like this:

- Sitemap (hidden container; menu: primary links)
--- Blog (category)
--- About (category)
----- About pages (hidden container; menu: about)
------- History (category)
------- Who we are (category)
--- Contact (category)

With the combination of per-container menu settings, and a distant-parent hierarchy, you should be able to do what you're proposing. Category module is designed to solve problems like this. Hope it goes OK.

Malvineous’s picture

I've run into this same problem, but unfortunately using multiple parent containers hasn't worked for me. My structure is like this:

- Sitemap (hidden container; menu: navigation)
--- Programs (hidden container; menu: primary links)
----- Utilities (category)

What I'm after is "Utilities" appearing on both the Navigation menu and the Primary Links menu, with all pages in the category as sub items under this on both menus. Unfortunately only the direct parent of the category works (the full menu appears correctly on the primary links) not the root category (navigation menu doesn't show the container or subitems.)

Is there a special option you need to enable to get a container to display pages within its subcontainers? I note that in the "Programs" container I can tick that I want pages of type "Page" to be shown in the menu, but in the "Sitemap" container although "Page" is listed I can't tick it. I've set the Sitemap depth to 3, which should be more than enough.

JirkaRybka’s picture

Whatever you do with the configuration, category_menu module maintains exactly ONE menu item for each node. That's how it works, and breaking that rule would be rather big change to the internals.