Is there a possibility to create a view to list most referenced nodes?

Comments

andjules’s picture

+1
Let's say I have 50 products (and a 'product' content type)
and I have a 'Press Releases' content type with a node reference field
A press release can reference one or many products.

I'd like to be able to construct a list of products that have been referenced in press releases...
with the most referenced product at the top (descending order)

No idea how to go about it!

nagiek’s picture

Not entirely sure, something along these lines

  1. Create a view
  2. turn on aggregation
  3. sort by the referenced field, aggregated by count

HTH

emptyvoid’s picture

This module doesn't provide a views rendering style to lists referenced parent or child nodes for a single record (I'd like it to emulate how taxonomy lists multiple terms in a comma separated list for each record).

Sadly the module wasn't designed to display relationships this way and based on my research it may never do it. Best bet is if you are starting a new project use entity relationships or relation module.

renatog’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

#3 really make sense

And Entity reference should be help in your case.

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your help @emptyvoid

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.