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.
Hi,
I am trying to create a content view where I want display term name as arguments for example
cat1
cat2
cat3 ...
so I added a contextual filter for a particular taxonomy field. It works great but the only issue is that view is displaying term id instead of term name. So when I access that view my output is like
1 (0)
2 (0)
3 (1)
Please let me know how can I display names instead of the ids.
Thanks
Rosh
Comments
Comment #1
Vaibhavi Soni CreditAttribution: Vaibhavi Soni at AddWeb Solution Pvt. Ltd. commentedContextual filter with taxonomy term you require following setup in view.
Select your taxonomy field in view contextual filter and set below value.
Select option "provide default value" which list following options.
Find this option "When the filter value IS in the URL or a default is provided
Checked - Specify validation criteria which list following options.
Output taxonomy term you need following setup in view.
Format : Show : Fields
Fields : (term) Taxonomy term: Name (Name)
Hope this helps!
Comment #2
renatogHi guys.
I tested the example cited by @harsh-bhatt and works good
Thank you very much
Comment #3
renatogComment #5
Richard15 CreditAttribution: Richard15 commented#1
Super!! Thanks!