Field Formatter Order is an attempt to allow a reverse-delta rendering of multiple fields.

Combined with field_multiple_limit it can also be leveraged to show just the last field attached to an entity.

An extension to field_formatter_settings that allows you to set a field that contains multiple values to display in reverse order.

Use-case for this was a 'publication' that had many 'issues' that were attached via entityreference.
It was easy to add new items at the bottom, but when displaying a 'teaser' for that publication, it made sense to display just a few 'issues', and the most recent first.

A similar case could be when adding images to a content type to use as a slideshow. Maybe in the teaser you want to show the most recently added image or attached file.

TODO - full code style review. Currently sandbox/experimental

I found it difficult to convince the field renderer to respect #weight on the render array, so had do do the re-ordering a bit too manually...

Comments

dman’s picture

* Whoops, I got distracted when writing up the proj and forgot to push the code. Coming tomorrow.

tamerzg’s picture

Status: Active » Closed (won't fix)