Taxonomy contextual filter has confusing description

Created on 6 September 2016, over 8 years ago
Updated 4 July 2023, over 1 year ago

Problem/Motivation

In Views, the contextual filter "Has taxonomy term ID" has a configuration option "Load default filter from node page, that's good for related taxonomy blocks". This text is ambiguous and confusing.

Steps to reproduce

  1. Create or edit a view of content: for example, /admin/structure/views/view/content.
  2. Under Advanced, add a contextual filter. Select "Has taxonomy term ID".
  3. For "When the filter value is NOT in the URL", select "Provide default value".
  4. For "Type", select "Taxonomy term ID from URL".
  5. One of the options is "Load default filter from node page, that's good for related taxonomy blocks".

Proposed resolution

The patch in #9 changes the text to "Load default filter from term entity reference field(s) on node page".

Remaining tasks

User interface changes

Before

API changes

None

Data model changes

None

Release notes snippet

N/A

Original report by @enap

The wording for the contextual filter:

Content: Has taxonomy term ID :: Provide default value :: Taxonomy term ID from URL :: Load default filter from node page, that's good for related taxonomy blocks

..is quite confusing and should be expanded to inform users that the ALL fields of the node are checked for entity_reference fields referencing taxonomy terms.

/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php L119

      '#title' => $this->t('Load default filter from node page, that\'s good for related taxonomy blocks'),
🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Taxonomy 

Last updated 33 minutes ago

  • Maintained by
  • 🇺🇸United States @xjm
  • 🇬🇧United Kingdom @catch
Created by

🇦🇺Australia enap

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024