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

ltwinner’s picture

I 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?

ltwinner’s picture

nvm

MGN’s picture

Status:Active» Postponed (maintainer needs more info)

Is this still an issue, or has it been resolved?

I 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?

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).

ltwinner’s picture

I 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.

MGN’s picture

Status:Postponed (maintainer needs more info)» Fixed

Ok. Marking this as fixed since the problem has been resolved.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Katrina B’s picture

Status:Closed (fixed)» Active

I'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.