0

How do I count how many nodes have referenced the current node In Views?

1 Answer 1

2

In the Advanced section of the view's configuration, there is a subsection Other. This subsection holds an item Use aggregation. Turn this item on. This allows you to configure the Aggregation settings for each field in the Fields section. One option is to use COUNT.

What remains is to navigate from the current node to the nodes that reference the current node. In Drupal 6, this could be done with the Reverse Node Reference module, which suggests the References module for Drupal 7. I think you have to add a Relationship then add a Node:Nid field that uses this relationship and is aggregated using COUNT.

1
  • Aggregation + Entityreference module Solved the problem. Thanks
    – hpn
    Dec 19, 2011 at 11:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.