I create a container and a few child categories and activate the generation of menu links. Nevertheless, neither container nor categories show up anywhere in the menu structure. Breadcrumbs display correctly though.
My Drupal version is 6.3.
I create a container and a few child categories and activate the generation of menu links. Nevertheless, neither container nor categories show up anywhere in the menu structure. Breadcrumbs display correctly though.
My Drupal version is 6.3.
Comments
Comment #1
Jaza commentedIf breadcrumbs display correctly, then the menu links must be getting generated - the breadcrumbs are built directly from the menu links.
The D6 category_menu module behaves like the D6 book module, in that it doesn't create an entry in the 'menu_custom' table. This means that you cannot see or edit these menu links through 'admin > build > menus'. Nevertheless, they are there.
Try enabling the book wrapper, and turning on the 'book navigation' block. Does the menu structure get displayed in that block? If so, then the menu links are definitely being created.
Comment #2
riemann commentedThanks for the quick response.
Activating the 'book navigation' block led to finally seeing something going on with the menues. Yet, there still seem to be problems with the hierarchy of categories. My structure is the following:
I put a story into 'MyCategory' and another story into 'MySubcategory'.
What I get when I'm not on a node page but e.g. on /admin is just 'MySubcategory' as the only item (it has a dropdown-arrow in front though). Once I click that item and open the category node 'MySubcategory' no sub items appear (which I would have expected from the arrow) but two more items on the same level: 'MyCategory' and 'MyContainer' show up.
The breadcrumbs are logically consistent with this, i.e. I get
'Home > MyCategory' and 'Home > MySubcategory' for each story.
I have book and menu wrapper installed.
Comment #3
danielgt84 commentedI'm having exactly the same problem. Any help on this is highly appreciated.
Comment #4
ctguy commentedHas anyone figured this out? I have been struggling with the same thing. No matter what I do I can't get a menu generated by the Category module to show up. When I edit the container-->Container Information-->Menu Links and set "use custom menu link" select the menu that I want and then save everything looks fine. The menu just doesn't show up though. I tried adding the menu to various blocks to no avail. When I browse the database it looks like there is something in the tables for category menu, but nothing is showing up. I feel like something is being missed that has to be obvious, but I did a couple clean installs and follow the same steps to no avail.
Install Site --> Install Category Module --> create test container --> create test category --> create menu to hold it and assign it to a block for display.
Next set container settings so that menus are created and use custom menus but the setting doesn't stick.
Create some content and assign it to the category. No menu showing up...
What am I missing?
Comment #5
tombigel commentedI have a similar problem - I enable "Generate Menu" and nothing happens.
BUT - I found some useful info, if I press "Preview" instead of "Save" I get the following errors:
Can anyone reproduce this?
Comment #6
sfperson commentedI'm getting the same type of errors:
* warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in /Library/WebServer/Documents/drupal-6.9/modules/category/category_menu/category_menu.module on line 187.
* warning: array_flip() [function.array-flip]: The argument should be an array in /Library/WebServer/Documents/drupal-6.9/modules/category/category_menu/category_menu.module on line 188.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /Library/WebServer/Documents/drupal-6.9/modules/category/category_menu/category_menu.module on line 188.
Have you found a solution?
Comment #7
Jaza commentedI've committed a change to HEAD that fixes the array_intersect() and related error messages that you were seeing on preview.
Re: the original subject of this thread — "menu items don't show up" — this was, up until now, more-or-less by design in the Drupal 6 version of the Category module.
I've just committed a new feature to category menu, that lets you select a "menu to put links into" for each container. By default, a new "hidden" menu exists for each container. Links in a "hidden" menu are not listed and are not editable through the menu administration screen. There is also no block provided to display them in a side navigation panel. The only ways in which these menu links are exposed, are (a) through breadcrumbs, and (b) through the "book navigation" block. This is the same way that menu links are stored for the book module in core, and that's why I designed the same behaviour for category_menu.
Clearly, this behaviour is confusing, not to mention unsuitable for many use cases. So now, if you select another menu apart from 'default' for your container, then you WILL have a standard menu block available to display your links, and your menu links WILL be listed and editable through the menu administration page (although editing them is not advisable, since category_menu is liable to override your edits at any time - this was why I originally designed the generated menu links to be "hidden").
Please try out the new behaviour - I'm open to feedback on it. Is the menu behaviour of the category module less confusing now? Is more work still needed - and if so, what changes would you like to see implemented?
Comment #8
JirkaRybka commentedThis seems to be working pretty good now! :-)
Comment #9
Jaza commentedGlad to hear that, JirkaRybka. I'll be closing this thread, then. :P