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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbiscalchin created an issue. See original summary.

dbiscalchin’s picture

dbiscalchin’s picture

Status: Active » Needs review
dbiscalchin’s picture

Issue summary: View changes
guptahemant’s picture

Thanks for the patch @dbiscalchin,
I have created an updated patch so that it can also work in case of multilingual sites.

Status: Needs review » Needs work

The last submitted patch, 5: hide_contextual_filter_breadcrumb-2691769-5.patch, failed testing. View results

guptahemant’s picture

Status: Needs work » Needs review
FileSize
1.93 KB
nayanalok’s picture

Need to set $breadcrumb = NULL; if breadcrumbs are not enabled or breadcrumbs are empty.

here is a patch.

Chris Matthews’s picture

Assigned: dbiscalchin » Unassigned

Unassigning @dbiscalchin

rjlang’s picture

I needed exactly this. Tried out patch #8, works perfectly.