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

CommentFileSizeAuthor
im1.jpg80.71 KBrosh7674
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vaibhavi Soni’s picture

Issue summary: View changes

Contextual 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.

Type : Raw value from URL
Path Component : argument number from your url

Find this option "When the filter value IS in the URL or a default is provided
Checked - Specify validation criteria which list following options.

Validator : Taxonomy term
Filter value type : Term name converted to Term ID

Output taxonomy term you need following setup in view.
Format : Show : Fields
Fields : (term) Taxonomy term: Name (Name)

Hope this helps!

renatog’s picture

Status: Active » Reviewed & tested by the community

Hi guys.

I tested the example cited by @harsh-bhatt and works good

Thank you very much

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Richard15’s picture

#1

Super!! Thanks!