Use cases:
A custom node type with a field that is set to allow multiple values (say documents as attachments). When the node is displayed as a teaser, there is a need to show the count of how many attachments have been added (not the actual attachments). How can one achieve this with the current core functionality?
A views listing of nodes of the type from the use case 1 above. Same deal, the count of the attached files needs to be displayed in a column. The only way I can think of in order to achieve this currently is to rewrite the output of the field using php (I think that this would require https://www.drupal.org/project/views_php which has not been ported yet) and mess with deltas (which novice users might not understand).
There's a module in d.org contrib that does that: https://www.drupal.org/project/field_count_formatter
Display formatter:
Views formatter:
I think that this would be a very nice addition to core views and field display formatters that would simplify a not so uncommon task.
Recent comments
Welcome to Backdrop! For your setup, you’ll want to create a subtheme of Bootstrap5 Lite itself; the Bootswatch styles (like Cerulean) are just presets that B5 Lite loads, and you can “lock in”...
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rob, Welcome to Backdrop! Here’s a quick overview: Subtheming Bootswatch: You should create your subtheme based on Bootstrap5 Lite, not directly on a Bootswatch style....
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rolf, This happens because CKEditor saves absolute or semi-absolute paths in the HTML instead of using Backdrop’s file stream wrappers (like public://). When you move your site...
Losing link to embedded pictures when moving my installation