Hiya everyone, Jonny D. here with a rather "fun" problem.

I want to be able to post nodes and categories in the structure of a table of contents for a Container in the category module. The problem is I need it to be simple. As it stands now if I try to add a category it add's the category but the menu item dissappears and all sub-items end up looking like they have no category. On top of that, just to get the structure right I have to set the new category in like 3 places to make it appear in the menu and TOC right. I go into advanced settings of the menu, and set the menu item again to where it's supposed to go, and then the item is there. I don't know why this happens, but is there a way for me to just add a menu item which appears in the TOC in the category module so as to streamline the process.

If anyone has any idea, I would really appreciate it.

Comments

mark matuschka’s picture

is there a way for me to just add a menu item which appears in the TOC in the category module

Not sure if I understand all your post, but this seems to be the key question. And it's my key question.

There is much discussion and confusion in forums about whether category module works well for real sites. Seems to me it works well for people that don't need to add menu items and have them appear in the TOC.

So how do you put a menu item, say node/add/image, into a category module table of contents?

venkat-rk’s picture

I have a hard time understanding what you mean. Can you explain with an example?

----
Previously user Ramdak. Feeling comfortable enough to use my real name after two years with drupal;-)

mark matuschka’s picture

Sure.

One of the category module's main claims to fame is that it manages a site's menu hierarchy, automatically generating tables of contents and links to the next/previous topic as required.

Seems to me that's true for displaying content. But what about when the menu items for displaying content are mixed with other functions such as creation of content, exporting content, etc?

For example, this simple menu structure works well with category module:
All site content
- Stories
- Pages
- Images

Let's say you want to have the menu structured like this instead:
All site content
- Stories
- Create story
- Pages
- Create page
- Images
- Create image

The category module doesn't know about the new menu items so doesn't include them in its TOC.

Is there any way to include the new menu items in the TOC?

venkat-rk’s picture

Thanks, I get it now :-)

You can get the custom menu links (Create story, Create Page, Creat image) into the menu. At ../admin/menu, just find the container to which you want to add these links, click 'add menu item', add your links and move around the links manually. Since cat_menu relies on drupal's underlying menu system, those links should show up.

As for having these show in the ToC, are you sure you can get images, pages etc into it? My experience is that the ToC is meant to display only the prev/up/next links for the containers and categories in the hierarchy structure. If I am wrong, okay, otherwise this is a candidate either for a bug report or a feature request.

----
Previously user Ramdak. Feeling comfortable enough to use my real name after two years with drupal;-)