Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module provides an easy way for an entity to keep track of how many other entities are currently referencing it through Entity Reference fields attached to other entities.
This module is an adaptation of Nodereference Count module, porting the same functionality to Entity References catering to the added flexibility in Drupal 7 to reference any entity type -- not only nodes.
How it works
This Entity Reference Count is in-and-of itself, just another field type (called "entityreference_count" in the code) that may be attached to any Drupal entity. The field may be configured to select which referencing entity types and fields you want to aggregate in the count. The counter field is automatically re-calculated when the referencing or referenced entity get inserted, updated or deleted. The Entity Reference Count's numeric field value may be enabled, displayed and manipulated via view modes, through the "Manage Fields" interface provided by Drupal core's Field UI, and has built-in Views integration.
This module provides a pager for MySQL-backed views which uses the SQL_CALC_FOUND_ROWS hint to provide pager count information, avoiding a separate SELECT COUNT(*) query.
NodeStream enterprise gives you a full-blown Drupal site aimed at sites which maintains a lot of structured content like university web sites and web sites for big enterprises.