[SOLVED][Drupal Views] How to enable contextual filters in Views to accept words instead of ID numbers?

| | 1 min read

A few Drupal users were looking to know how to enable contextual filters in Views to accept words instead of ID numbers. This is especially useful in filtering items in a View using a taxonomy term as at a glance, only taxonomy term ids seem to be accepted. If you are facing the same situation in your Drupal site and would like to know how to enable contextual filters in Views to accept words instead of ID numbers then continue reading.

The solution is very easy. You have to enable the Specify Validation Criteria to use the Term name converted to a Term ID. Another solution would be to add a Taxonomy relationship to the View which would then enable Taxonomy term to be used instead of Taxonomy ID.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.