Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some views may contain several contextual filters. Each of them is displayed on the breadcrumb followed by their previous contextual filters when the views' page is accessed.
The Views module already offers an option to override the breadcrumb's title for each contextual filter, but sometimes it may be desired to not show anything at all. In this case, I suggest the following patch, which allows the user to provide the <none>
value on the 'Override breadcrumb' option. When this value is provided, the breadcrumb for that contextual filter is omitted.
Comment | File | Size | Author |
---|---|---|---|
#8 | hide_contextual_filter_breadcrumb-2691769-8.patch | 1.96 KB | nayanalok |
| |||
#7 | hide_contextual_filter_breadcrumb-2691769-6.patch | 1.93 KB | guptahemant |
| |||
#2 | hide_contextual_filter_breadcrumb-2691769-1.patch | 1.92 KB | dbiscalchin |
|
Comments
Comment #2
dbiscalchin CreditAttribution: dbiscalchin commentedComment #3
dbiscalchin CreditAttribution: dbiscalchin commentedComment #4
dbiscalchin CreditAttribution: dbiscalchin commentedComment #5
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedThanks for the patch @dbiscalchin,
I have created an updated patch so that it can also work in case of multilingual sites.
Comment #7
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedComment #8
nayanalok CreditAttribution: nayanalok commentedNeed to set $breadcrumb = NULL; if breadcrumbs are not enabled or breadcrumbs are empty.
here is a patch.
Comment #9
Chris Matthews CreditAttribution: Chris Matthews commentedUnassigning @dbiscalchin
Comment #10
rjlang CreditAttribution: rjlang commentedI needed exactly this. Tried out patch #8, works perfectly.