Views order by delta

Categories

Component ID

2795269

Component name

Views order by delta

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module is for you if:

  • You have a Entity Reference field that holds a list of referenced items that you want to use in a view (a slideshow for example).
  • You want to use the Entity Reference field to order the items in the view.
  • You don't want to use nodequeue, entityqueue, etc...

Views actually support order by delta, but the results are usually duplicated in a way that distinct or pure distinct can't reduce the duplications.

To use this module, create a view to display the referenced items from your field, create a reference to the entity that has this field using the field as the bridge. Add a sort criteria "Order by delta (using your_field_name)", make sure you select your field in the relationship.

The main reason I created this module is to fix the Config Pages issue when trying to order items by delta.