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
Hi I added the 2 additional settings in settings.php, did a restart - and the error disappeared! Thanks for the support! (but the issues with the conversion still remain .....
Problem with utf8mb4 Format when importing database
With JQuery, simple and fast. Or put all possible links in one menu, and hide unnecessary with CSS mediaquery.
Different primary menus depending on the viewport size?
I wonder if what is happening here is the default database settings are for utf8mb4 if the database server supports it. In settings.php or settings.local.php if that's where you put your...
Problem with utf8mb4 Format when importing database