Contextual filters taxonomy name

Solutions

Another way to skin the cat:

I needed the actual taxonomy term name query not converting to term ID.

Here is how to query the taxonomy term name that was passed as a contextual filter:

To get the name you must add a relationship, either on the field or the generic taxonomy relationship. Then you can add any fields for that term as a contextual filter, including the name.

https://www.drupal.org/node/1156022#comment-4469378

I assume you've added the Content: Has taxonomy term ID contextual filter. You can use taxonomy term names with this filter by adjusting Specify validation criteria settings. here's a screenshot:

Screenshot

Make sure Specify validation criteria is checked and you should be presented with more options. Under Validator choose Taxonomy term. You can optionally select with vocabularies to allow. Under Filter value type choose Term name converted to Term ID and check the Transform dashes in URL to spaces in term name filter values checkbox.

Similar questions

Modifying contextual filters to display user name
I have a view that takes one contextual filter for a UID. I would like to make the title of the page include the user name? My closest bet it the "Override title" option under "When the filter value is in the URL or a default is provided". However, it appears that the only tokens available there are for the plain filter values, but I need the user ...
Views Contextual Filters - User Name in URL
I have a view set up to function as a blog, and a contextual filter set up to filter by author of the blog post. The point is to be able to click on the blog post author link and go to a page that lists all the blog posts by that person. This is facing anyone who visits the site, and any visitor (non-logged in) can view the blog listing of any of t...
How do you go without hierarchical taxonomy filters, when the site heavily relies on content browsing(multiple filters and sorting)?
I'm building classifieds site with drupal and got stuck on one major issue: I have 1 taxonomy vocabulary with parents, children, grandchildren and great-grandchildren, and can't find a way to build browser which would not restrict user's choices. Over few days I found many drupal users stuck in the same place waiting for hierarchical taxonomy filte...
Taxonomy in Contextual filters for Views
I am new to drupal and currently I am exploring the Views module. I have a dummy website for a toy shop to learn on. I have created taxonomy as follows where "Category," "Ages," and "Brand" are vocabularies, and the rest are taxonomy terms : I want to create a view that displays all toys, depending on what has been passed in the contextual filters;...
Views, Taxonomy, multiple parameters using contextual filters
A view has been created to display related content types via their taxonomy terms, using contextual filters. Currently the view is able to display content based on the first param eg. about The goal is to abe to display content based on the second param, being the child term and hide the parent eg. about/meet-the-team. Here is a break down Url : pa...
How to get Taxonomy Menu working properly with Contextual Filters in Views?
I can't get taxonomy menu links working properly with contextual arguments in Views. This is what I have done: 0) I create a menu called: Catalog menu 1) I create a Vocabulary called: Catalog terms and in the Taxonomy menu area I set Catalog menu for the Menu location (I have Taxonomy menu module enabled which allow me to do this) 2) I the Catalog ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.