You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should provide a field formatter that allows people to show a multi-value field as a comma separated list of items. In Drupal 7 this was done by using the https://www.drupal.org/project/field_delimiter module.
Leaving this out will be a regression from Drupal 6. In Drupal 6 you could choose to display taxonomy terms on a node as a comma separated list of links. In Drupal 7, the only way to achieve the same thing was to use the taxonomy formatter module.
I would love to see this common-use-case feature restored to backdrop.
MVP:
Allow separating items by a comma ,
Apply this new formatter to any multi-valued field
Allow formatting multi-valued fields as HTML lists (e.g. <ul>, <ol>)
Nice to have:
Allow separating items by any custom delimiter (e.g. ,, ;, -, etc.)
Allow specifying a different custom delimiter for the last two items (e.g. &)
ghost
changed the title
Add a comma-separated field formatter for multi-value fields.
Add a comma-separated/list field formatter for multi-value fields.
Apr 10, 2015
Since there is no recent activity on either issue recently, I'm going to switch back to the original since we usually go with the older issue. Copying comments from the newer thread so they are not lost:
I used to have a custom "delimiter" formatter, that allow user to choose the delimiter (like a comma, br tag, ...), and a custom delimiter for the last element ( &, "and", ...)
can share the code if needed.
I've started on this but this PR is not ready for review yet. Just putting it here in case anyone wants to pick up where I left off. backdrop/backdrop#4712
We should provide a field formatter that allows people to show a multi-value field as a comma separated list of items. In Drupal 7 this was done by using the https://www.drupal.org/project/field_delimiter module.
Leaving this out will be a regression from Drupal 6. In Drupal 6 you could choose to display taxonomy terms on a node as a comma separated list of links. In Drupal 7, the only way to achieve the same thing was to use the taxonomy formatter module.
I would love to see this common-use-case feature restored to backdrop.
MVP:
,
<ul>
,<ol>
)Nice to have:
,
,;
,-
, etc.)&
)Backdrop contrib module:
backdrop-contrib/textformatter
The text was updated successfully, but these errors were encountered: