Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a content type has a multiple valued field. Is it possible to control the number of items it shows within a build mode?
For instance, if you have a content type with a multiple valued image field. One might just be interested in displaying a single - i.e. the first - image instead of all the images.
This is useful for generating lists of nodes within views where you want to display 1 image while displaying the full node, multiple images might be shown.
Comments
Comment #1
swentel CreditAttribution: swentel commentedsee http://drupal.org/node/700056 - search for 'Limit multiple field' - that's how we do it a work - the function on the docs pages could even be more generalized, but that's for another day :)
Comment #2
netsensei CreditAttribution: netsensei commentedTotally missed that info. My bad! :-)
Comment #3
PieterDCThanks for the hint. The workaround works.