New views handler for multiple value fields - show count

Created on 29 January 2007, over 17 years ago
Updated 16 April 2024, 5 months ago

Would be nice to be able to show a count for a multiple value field when displayed in a View. Makes sense when there are lots of values. I might even love a feature whereby a regular 'group multiple values' field switches to a count when there are too many to show (i.e. greater than 10). not sure if that can be an option on the handler.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States moshe weitzman Boston, MA

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    Going through old issues.

    Not sure if adding a field handler for this would be the way to go here, expanding the 'Multiple field settings' in \Drupal\views\Plugin\views\field\EntityField::multiple_options_form with a 'count' option might work, or people could do this in a theme since you can just run this through '#theme' => 'item_list'

    But offering this option might help people avoid switching on aggregation which always brings a whole new set of problems

  • πŸ‡ͺπŸ‡ΈSpain candelas

    It would be great to have this :)

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    This would be great. In addition to count, it could sum, average, etc.

    In the meantime, field_count_formatter β†’ module is useful.

Production build 0.71.5 2024