Details:

1.) Created a container and enabled the story node type. Depth set to 0 as it is an About Us section- more or less static content, except for some categories
2.) Created several categories under the container. Most of these are used as static, page-like nodes while a few (for example, 'Annual Reports') are used for tagging
3.) Created a story and tagged it with the 'annual reports' category.
4.) Entered the url alias manually as I am not using cat_pathauto due to the latest issues

The breadcrumbs are fine upto to the category page (screenshot attached), but when I click on the actual story node, the breadcrumbs break and show just 'Home', with the node title below it. The category menu tree for that container jumps to a collapsed view unlike the expanded view it usually shows.

Comments

venkat-rk’s picture

StatusFileSize
new9.55 KB

Cat_menu tree and breadcrumb trail is broken on the story node view.

This is a brand new site with a fresh install of latest category module downloaded today.

marcoBauli’s picture

Ramdak, pardon the obvious question, but of course you have category_menu enabled and "create menu items (breadcrumbs only) for assigned nodes" checked, right?

venkat-rk’s picture

kiteatlas, thanks for the concern. Yes, I had category_menu enabled, but not the other one. May be that was causing the problem? Need to test again, then.

venkat-rk’s picture

kiteatlas, thanks for this wonderful tip. Do you know what it means? It means that you don't even have to alias your paths to get the breadcrumbs and the menu hierarchy working together perfectly. I wish people could understand what a brilliant implementation this is.

Of course, blocks needs paths, but that's okay for the time being.

marcoBauli’s picture

Ramdak, i'm glad that helped =)

I am only scared about the potentially huge number of single nodes menu items that a user-generated content site could get.... but that's okay for the time being ;)

Also maybe a partial help on this is to set up a "category menu" and set Category module to create all it's menu items there and keep things a bit more tidy..

cheers

karens’s picture

Yes, I've run into this limitation. I had over 2,000 items in my menu which made it completely unusable, so I'm in the process of removing all those items. That means I'm not going to have the breadcrumbs I want, so hopefully there will be another method of doing this eventually. For instance, taxonomy_menu created a nice breadcrumb for all my items without the need to put anything in the menu table. I'm wondering if that method could be used somehow...

marcoBauli’s picture

KarenS, was that unusable in terms of performance/functionality or in terms of managing the /admin/menu page?

If performance/functionality is not compromised, then maybe it could be possible just to hide that "Category menu" i was talking above with a hack?

Or, better, a feature request against the category_menu could be raised so that when creating menu items for assigned nodes (breadcrumbs only)" a real menu item is not generated in /admin/menu. This would be ideal, i agree.

(also maybe taxonomy_menu+taxonomy_wrapper combo can be used instead?..need to check it out!)

karens’s picture

Performance on the menu page was an issue -- it was getting so big it sometimes wouldn't even load. So, moving menu items to a different menu block wouldn't have helped, I needed to get them off the menu page entirely. I wondered, too, about whether it was affecting performance to carry around all those menu items, but I can't confirm anything on that point.

Yes, I'd like to know if there is a way to mimic taxonomy_menu's handling somehow, but couldn't see a way to get it working right off the bat and don't have time to investigate it right now.

venkat-rk’s picture

Performance on the menu page was an issue -- it was getting so big it sometimes wouldn't even load.

Hmm...I didn't think about that. But, you are right. On many test sites where I did an import of into category, the menu page would repeatedly crash/not load when there were many menu blocks and menu items.

marcoBauli’s picture

Ramdak, i'm going to open an issue about this, could you please tell how many nodes your sites have, and how performance was hitted?

venkat-rk’s picture

kiteatlas, the test site I imported into category had about 20 blocks menu and about 400 menu items or more.

marcoBauli’s picture

i just filed that issue (as bug) about breadcrumbs menu items at http://drupal.org/node/75276

Hopefully Jaza could be able to put his hands on it when he'll be back from his Summer of Code..

Of course, as a proud member of the Category fans club ;) i am also favorable to contribute to a bounty to see that bug solved!

cheers

@ramdak: maybe this issue can be closed or set by-design at this point? i dunno if only module mantainers are authorized to do that, so i'll wait

venkat-rk’s picture

Thanks for submitting that issue, k.a! I have linked to Karen's comments there.

Better to leave this issue open until Jaza responds.

venkat-rk’s picture

With reference to http://drupal.org/node/73830#comment-117956 above:

It appears I spoke too soon. If you have the following structure and settings, the breadcrumb trail will break at the node level:

Container: menu items enabled; assigned nodes disabled
  -Child container: menu items *disabled*; assigned nodes enabled for breadcrumbs
    -Category

When I post a node tagged with the above category, the breadcrumb trail breaks. Not sure if this is a bug or by design. Making assigned nodes enabled for breadcrumbs in the top level container had no effect on the breadcrumb trail. It was still broken

Why am I disabling menu items for the child container? Because each child container has a huge number of categories and it is messy to have it all show up in the menu when you can simply show it in category_display.

Screenshot attached.

venkat-rk’s picture

If I define the hierarchy within a container using categories (instead of containers) *all through*, except for the top level container, the breadcrumb trail appears to work perfectly. Screenshot attached.

So, why do I want to use child containers instead of categories? Because it gives great flexibility for defining different allowed content types on a per container basis while at the same time keeping it all within that hierarchy. And makes it a lot easier and nicer on the node form when selecting the categories.

venkat-rk’s picture

And makes it a lot easier and nicer on the node form when selecting the categories.

Hmm...that's a bit inaccurate. It is actually easier when you have cat>>sub-cat, but my other point about defining allowed content types is a valid one. But this isn't the point of the discussion, really.

venkat-rk’s picture

StatusFileSize
new3.78 KB

Okay, I experimented further with the setup I described in #14 of this thread. It does seem that that hidden child containers mess up the breadcrumbs trail. Here is an example:

Container (menu items enabled; assigned nodes enabled *breadcrumbs*)
            -Hidden child container-1 (menu items enabled; assigned nodes enabled *breadcrumbs*)
              -News (child category of hidden child container)
                -Hidden child container-2 (child container of 'news' category; menu settings as above)
                  -Alerts (category1)
                  -Announcements (category2)
                  -Condolences (category3)

When I create a story node and tag it with 'News' and 'Announcements, I expect the breadcrumb trail to be Home > Container Name > News > Announcements on the node page. Instead, it is Home > Container Name > News only.

Worse, when I click on 'Alerts' in the ToC generated by category_display, the expanded view of the container breaks and the breadcrumb trail breaks completely and is just Home: (screenshot attached)

Or, is this just wrong use of the hidden containers?

marcoBauli’s picture

Status: Active » Closed (duplicate)

posted the conclusion above in the similar issue at http://drupal.org/node/84643

setting this as duplicate to tidy-up the queue. please undo if necessary.

liquidcms’s picture

too funny.. i saw all these posts about breadcrumbs and it sounded like it ws the same issue that i was having:

my breadcrumbs work fin through cont, cat path until i get to last node and then all i see is home.

so i did what Ramdak suggested (I think) which is enbaled assigned node - breadcrumbs only for those containers and now i have no breadcrumbs at all (just HOME) (although, hmm.. maybe they disappearded for some other reason).

excuse the ranting that may show up... lol

- i have no hidden containers (originally sometime ago i tried them; but they screwed up my menus)

- i also don't use cat_menu (although module is enabled) since i was going nuts everytime i save a node my menus get corrupted - items in wrong spot in hierarchy, showing up under wrong block, etc... so now they dont expand; but i dont spend hours running around in circles trying to fix them - and i can also verify someone else posting that menu settings dont work under cat unless you go to advanced menu settings section

- oh, and of course i get the duplicate entry warning everytime i save a node (dup entry is in cat_menu table)

eventually for my own site i suspect i will right my own code for menu block since i have spent days trying to get simple menus for 6 node structure working - i guess now maybe i will do same for breadcrumbs??? Can't miage what i would do for a clients site

dont get me (completely) wrong cat module is great idea... but sooo many bugs!! I think with so many options - many things are not compatible and end up (easily) corrupting the database - and then no solution - perhaps a "sanity" script would be useful which would go through database and pull out conflicts and maybe suggest possible solutions.

ok, thats my rant for today...