Limit the number of fields to display

Created on 30 July 2011, almost 14 years ago
Updated 6 July 2025, 1 day ago

Use case: image field set to unlimited, but you only want to show the first on a teaser view.

This is now possible with a contrib module Field Limiter β†’ . We could adopt that code into Drupal Core.;

Note that instead of limiting the output, one could also limit the input for each field instance with Field Config Cardinality β†’ .

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component

field system

Created by

πŸ‡§πŸ‡ͺBelgium swentel

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States xjm

    It would be fine in contrib... except that the fact that Views implements all sorts of code to do this. There's a Views refactoring issue postponed on this. That's why I didn't wontfix this in favor of it being a contrib feature long ago. :)

  • πŸ‡ΊπŸ‡ΈUnited States xjm

    FWIW, third-party settings does also sound like a better approach to me.

Production build 0.71.5 2024