Great module thanks. Really sorted my breadcrumbs out for me as no other breadcrumbs modules had. The only place it's let me down do far 'out the tin' is with Organic Groups. I am getting the dreaded old HOME>GROUP NAME when viewing a create group node and HOME>(2 extra >> pointing at home) >>Node Title when viewing a group post node.
I would like to make it
HOME>GROUPS>GROUP NAME
HOME>GROUPS>GROUP NAME>GROUP POST TITLE
Is there a way to achieve this? thanks.
Comments
Comment #1
donquixote commentedYou could write a plugin for that.
Have a look at the existing ones, and come back when you have a question.
I am very interested in the result, and will make it part of the module, if you can upload a convincing solution.
It doesn't need to be in patch format - I rarely use a patch 1:1, and patch line numbers often don't survive the next version. Instead, you could upload just the .inc file for the plugin, or an independent module that can be enabled in addition to crumbs.
Comment #2
donquixote commentedAs I see, a node can belong to more than one group. So how can we know which of them to use for the breadcrumb? Always the first one?
Comment #3
donquixote commentedAnd what is this page?
HOME>GROUPS
Something custom-made? In this case you should really make your own module to make this thing the parent page for all group nodes.
Comment #4
kompressaur commentedSorry Don i was away doing something else on my website since. I would love to help you Don but i dont have the knowledge. I still have to manually patch things as i can't even do that. Im sorry :(
With OG you have the option to only allow a post to belong to one group. that doesnt answer your question though nor helps you at all does it? Maybe i could show you my site and you can see my 'crumbs' in action. I had actually deleted the breadcrumb from my site till your module came along.
A group node
http://onlinebanter.com/places/online-banter-development
a wait a second...with the group post node now i have deleted my pathauto url alias its picking up the group in the breadcrumb now
http://onlinebanter.com/node/314
HOME>GROUP NAME>GROUP POST TITLE
actually the clean urls are working for group posts. I dont know why they wasnt before. must have been my pathauto settings now ( places/[ogname-raw]/[title-raw]) working fine.
HOME>GROUPS would be ...welll GROUPS is just the default OG group view. No its not...wait a sec.....nope i realise now Don it's a panel page with a view in it.
http://onlinebanter.com/places
If i view the OG default view i see GROUPS (places) in the breadcrumb here.
http://onlinebanter.com/og
So i think it could be a problem with Panels possibly Don. I wouln't know where to begin though im afraid. Sorry.
Comment #5
donquixote commentedLook..
the cool thing is that you might already solve your problem with the current version of crumbs + pathauto alone.
Crumbs does work with path / pathauto in two ways:
1) "path" plugin: If a node has an existing alias "aaa/bbb/ccc", the crumbs "path" plugin will check if "aaa/bbb" is an existing alias or system path, and if yes, it will make "aaa/bbb" the parent of "aaa/bbb/ccc".
2) "pathauto" plugin: If after a fresh run of pathauto would get the alias "ddd/eee/fff", then the "pathauto" plugin will consider "ddd/eee" as the parent.
Any of these plugins are in "competition" with other plugins that might suggest different parent paths. The crumbs configuration at admin/build/crumbs controls which rule will "win the game". This process happens for each element of the breadcrumb, from right to left.
This is what you can do now, if you don't want to wait for the og plugin:
- Make a pathauto rule for group nodes, "places/[title-raw]".
- Make a pathauto rule for group post nodes, "places/[ogname-raw]/[title-raw]" (i think you already have this one)
- Re-create aliases for the respective nodes.
- If this does not help, play with the crumbs configuration at admin/build/crumbs. Especially, the order of "path.*" and "pathauto.*" plugins.
Comment #6
donquixote commentedThe 2.x branch has a plugin for organic groups.
Could you have a look, and tell me if it does what you expect? For me it seems quite ok.
Comment #7
donquixote commented"needs review" = "probably fixed in 2.x"
Comment #8
donquixote commentedFollow-up work for Organic Groups happens in
#1819300: Support both branches of Organic Groups: 7.x-1.x and 7.x-2.x
If the Drupal 6 og integration still does not work for you, re-open this issue.