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
Hello, @yorkshirepudding! Thanks a lot, I got it, all sorted out.
My layout template (layout--blog.tpl.php) doesn't work
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform