Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.3
Component:
page displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2012 at 14:18 UTC
Updated:
15 Jun 2012 at 11:51 UTC
Hi,
I'm playing around with a view that has 3 contextual filters. For every filter that has a representation of that filter in the url, a breadcrumb is added with that filter as url.
So in the case where all my arguments are named 'all', the 3 breadcrumbs will link to: view/all , view/all/all, view/all/all/all and they're all named after the views title.
| Comment | File | Size | Author |
|---|---|---|---|
| duplicate breadcrumbs.jpg | 71.49 KB | danny_joris |
Comments
Comment #1
smitty commentedThis is really a serious problem!
In my case all these links point to urls which do not exist and so the result of clicking on them is a "page not found".
I think this problem is a quite old one: drupalninja99 reported it for D6 at: drupal.org/node/243086
In http://drupal.org/node/769498 I found a practicable workaround:
You can write a small module and use the hook_views_pre_render to delete or modify the breadcrumb.
Comment #2
ashleyhazle commentedYou can set breadcrumbs by using the
Override breadcrumboption in the filters settings.The override effects the crumb for the previous item. So if you had a view page called Foo and 3 filters creating the url
foo/bar/2012/05and wanted the breadcrumbs to readHome » Foo » Bar » 2012, you would not override the filter for Bar, override the breadcrumb for 2012 with%1and the breadcrumb for 05 with%2.I don't think I am explaining this very well, but hopefully it will get you started.
A
Comment #3
dawehnerThanks for the answer!
I guess this can be marked as fixed then.