Field Formatter Range

Component ID

2560829

Component name

Field Formatter Range

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1490

Component created

Component changed

Component body

Field Formatter Range is very simple module that provides the option to display only selected range of values for multivalued entity fields.

For example if you have an image field attached to an entity and the entity has 15 images attached to it but you want to display only the first 5 of them, this module is exactly what you are looking for.

Beside setting the range(offset and number of items to show) you can also reverse the order so you can display just the last 5 images and by setting proper values you can display them in order or in reverse order too.

How to use:
Install the module, then go to manage display tab on entity of your choosing, choose any field that has more than 1 value and edit the formatter settings, you will see three additional options:

  • offset: where to start
  • limit: how many items to show
  • reverse order: will display the items in reversed order from the last value to the first one

This module won't be backported to Drupal 7. Use Field Multiple Limit instead.

Please report only bugs. Feature requests will most likely not be accepted.