I am using pathauto and custom breadcrumbs
With path auto I have set the following paths
blog -> blogs
blog/uid -> blogs/username
Then for blog nodes I have set the paths as
node/nid -> blogs/username/post-title
So my blog paths work like this
blogs
blogs/username
blogs/username/post-title
So then using custom breadcrumbs I have set the following breadcrumb for the blog/uid pages and it works fine
Specific path - blogs/*
Titles - All blogs
Paths - blogs
I then set the following breadcrumb for the blog node pages
Titles - All blogs
[author-name-raw]'s blog
Paths - blogs
blogs/*
However this does not work and instead of getting the breadcrumb I need
All blogs -> User's blog -> Post title
I just get
All blogs -> Post title
So the breadcrumb I set for the blog/uid pages, (blogs/*) is getting called for blog nodes. Probably because they are now on the path blogs/username/post-title that I set with pathauto. So any ideas on how I can fix this so my blog nodes have the following breadcrumb
All blogs -> User's blog -> Post title
Comments
Comment #1
ltwinner commentedI take it what is happening is that as Custom Breadcrumbs doesn't see '/node' in the path due to the pathauto module it doesn't apply the Node breadcrumb? But surely almost everyone who uses pathauto will not have paths with the text '/node' in them, making the Custom Breadcrumb for nodes section redundant?
Shouldn't Custom Breadcrumbs be checking the unaliased path to see if it is actually a node rather than just checking the path to see if it has the word '/node' in it as it seems to be doing at present?
Comment #2
ltwinner commentednvm
Comment #3
MGN commentedIs this still an issue, or has it been resolved?
This is not correct - custom breadcrumbs applies the breadcrumb based on node type - it doesn't check the path at all (unless you are using the custom_breadcrumbs_paths submodule, but that's a different story).
Comment #4
ltwinner commentedI implemented by using your advice on another issue. Create two breadcrumbs for blog/* paths and pick which one to use based on the number of arguments in the path. So I have it working that way.
Comment #5
MGN commentedOk. Marking this as fixed since the problem has been resolved.
Comment #7
Katrina B commentedI'm having the same problem. I have the Advanced Blog module installed, and I have set up the URL alias for blog paths to be /[blog-title] (the token for the blog title created through the Advanced Blog module).
Here's what I set for my Blog path in Custom Breadcrumbs:
Path: blogs/*
(I'd really like to use "blogs/[blog-title]", if anyone can tell me how to make that work.)
Titles:
Blogs
Paths:
blog
And here's the node breadcrumb for Blog entries:
Titles:
Blogs
[blog-title}
Paths:
blog
blogs/[blog-title]
The node breadcrumb for the Blog entries worked perfectly ... until I set up the path breadcrumb for the Blog path. Now my Blog pages and my Blog entry node pages have the same breadcrumb (the path breadcrumb set for Blogs).
I haven't been able to find any specific advice in the issues on how to fix this. Suggestions or help would be much appreciated.
Comment #8
lamp5