If a Field API field has a cardinality larger than 1, Views provides you a way to specify how many deltas should be displayed, and from what offset.
There are also options for reversing the deltas, as well as showing only the first and last.
This is really something that Drupal core should know how to do (or to be more precise, the field formatter).
That would allow us to remove that code from Views, as well as stop reinventing it across contrib (for example, here).
This should probably be postponed on converting the widgets and formatters to plugins, though.
Comments
Comment #1
tim.plunkettComment #2
swentel commentedRelated issue at #1234624: Limit the number of fields to display - only started with limit only, but range/reverse should be possible as well
Comment #3
xjmComment #4
swentel commentedhmm, one of the two can be marked duplicate, I vote the other one as that already has a patch (given, maybe not how it should look like, but the idea is there)
Comment #5
xjmRe-scoping and postponing on #1234624: Limit the number of fields to display.
Comment #19
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for 8+ years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #20
smustgrave commented3 months has past so closing out, but don't worry if still a valid task this can be re-opened by anyone.
Thanks!
Comment #21
xjmStill relevant AFAIK, and still postponed on the same core issue.