Hello, and thanks for this nice module.
I use Views 6.x-3.0-dev and have a views page with the path /gallery.
This View is configured to accept a taxonomy term as an argument, so visiting the URL /gallery/term_name would filter just the nodes tagged with the provided term.
On the gallery landing page (i.e. no terms in path) breadcrumb is displayed fine
Home Page » Gallery (only home page is rendered as a link)
However, this is how it looks on /gallery/lakes page
Home Page » Gallery » Lakes » Gallery (all crumbs except Lakes are rendered as links)
I am not sure why Gallery is rendered twice.
Hope this is detailed enough and can serve you to find the source of the problem.
Thanks again!
Comments
Comment #1
dizarter commentedThe problem seems to be with Views also generating breadcrumbs for pages with arguments. Temporary solution is to bypass Smart Breadcrumbs on views with arguments pages, but, then again, that makes breadcrumbs non-consistent throughout the site, since views do not insert argument name as the last item in the trail.
Comment #2
divThis commentedThis is actually a bug I have experienced before. The best option would be to disable Views breadcrumb generation when Smart Breadcrumb is active, but as far as I know, there's no programatic way to achieve this in the 6.x branch of Views. I'll investigate further.
Comment #3
andrew m riley commentedViews was tacking on the argument part and there was no way to change that. I ended up changing the hook_init to a preprocess_page to be able to inject the breadcrumb var. I am still caching the array and then calling the theme_breadcrumb in the preprocess since it gives more flexibility for multi-themed sites (disclaimer, I have not tested this scenario but in my mind, it works awesomely.)
Note about arguments: The views smart breadcrumb module doesn't take into account the argument titles. It is fairly easy to work around between the display's title and the argument title but it took me a bit to work it the way that I wanted.