Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294882

views - contextual filter - how to get term name, not term id

$
0
0

Views contextual filter on taxonomy term ID, with - override title - only has replacement patterns for term ID available:

{{ arguments.field_taxo_term_prod_category_target_id }}
{{ raw_arguments.field_taxo_term_prod_category_target_id }}

Views should provide replacement token(s) that yield the TERM NAME, not the term ID (which is essentially useless).

If there is some other way to achieve the appropriate result, to display the - term name of the current taxonomy term when a View traverses a taxonomy vocabulary, what is it?

===
step to reproduce

Create a view page with /taxonomy/term/% path and a contextual filter on an associated taxonomy term.

The option for "override title" and "replacement patterns" only provides the "target id", and not the term name, when it is the taxonomy term name that is surely the 99.99% desired use case.


Viewing all articles
Browse latest Browse all 294882

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>