Relationships

How to use contextual filter and relationship in views

Views is a very powerful module of Drupal. You can use it to show data in various ways which is not easily possible. Today we are going to tell share with you the two advanced and powerful features of views namely Relationships and Contextual filters.

Relationships

Relationships are basically a fancy way of saying that table A will join with table B in order to retrieve data related to it from there and the join will happen on some common field in both tables.

Display only parent terms in the View

Submitted by ravisagar on Mon, 06/08/2015 - 02:59

On one of our website for our client, we have used one taxonomy for all the states in India and each state further has various districts. These districts are added as the child term. This taxonomy is used in one of their content type, now few days back our client wanted to see a simple tabular report in which a count of all the nodes for each state can be viewed in real time.