Is there anyway to make this work for creating breadcrumbs for views? It works great for nodes but I'm looking for something to do this with views.

Comments

webwriter’s picture

Subscribe- I need breadcrumbs for Views as well.

eaton’s picture

Just to be clear, do you mean that you want to create a view at a url like foo/bar/baz, and the breadcrumb trail needs to include 'foo' and 'bar' but it does not, by default?

toddwoof’s picture

Title: Custom Breadcrumbs for Views » pe,

Maybe this is the same question as #1.

I have a view "newsletters" which is set with a taxonomy term argument, so I can show any newsletter at /newsletter/taxonomy-term-for-issue. By default, the breadcrumbs shows - home - on each of the newsletter pages. I want the breadcrumbs to show - home - newsletters (newsletters would link to a main page about the newsletters and a list of newsletter issues, etc.).

Presumably I can write a PHP snippet to return "true" for a path starting with /newsletter. But the views pages aren't a content type, so I can't select something in the "node type" field.

Is there a way to set custom breadcrumb visibility settings not by node type, but by a php snippet based on the path? I'm thinking of something like block visibility settings.

Thanks!

toddwoof’s picture

Title: pe, » Custom Breadcrumbs for Views

Sorry -- messed up the title in that last post. Just fixing that.

traviscarden’s picture