[Drupal Views] How to list the most popular taxonomy terms in Views 3 without repetition

| | 1 min read

In Drupal Views 3, if you try to create a node View to list the most popular search terms for a specified vocabulary the most popular search terms will be repeated if they are found in many nodes with the distinct option failing to catch them. However there is a solution to list the most popular taxonomy terms in Views 3 without repetition. If you want to implement it in your Drupal site then read on to find out more.

In Drupal Views 3 you can use a contextual field argument to do this. Follow the steps below

  • Firstly create a content based View.
  • After creating the View add a relationship to the taxonomy term.
  • Next add the term name field.
  • After that delete the node name.
  • Add a contextual filter of term name.
  • Finally n the contractual filter setting for no value preset set Summary and select Sort by number of records.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. Do you need professional help in building your Drupal site? We can provide a wide range of Drupal services to help you deploy your Drupal site easily and quickly. Get in touch with us to know more.