Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Deprecated

This functionality has been merged with Field multiple limit

Go use that!

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.

This could also be done via an embedded view, or by requiring the editor to always drag their items to the top ... but this should be a trivial display option to live alongside the other filed_formatter_settings like field_multiple_limit

Issues

It seems that the core field formatter template_preprocess_field() and theme_field() do not respect #weight when rendering the array of 'renderable 'items'.
This module had to make this happen by actually manipulating the order of keys of the array internally.

See also


This development supported by:
Sparks Interactive
Sparks Interactive Logo

and partially sponsored by:
National Institute of Water and Atmosphere
NIWA logo
Supporting organizations: 
Sponsored development as part of a project

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Content display, Site structure
  • Created by dman on , updated