Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The taxonomy terms are displayed in new line, how can I display them as comma separated terms?
example
Tags: Fruits, Vegetables, Grains
Comments
Comment #2
aadil.addweb CreditAttribution: aadil.addweb at AddWeb Solution Pvt. Ltd. commentedFor displaying Comma separated taxonomy terms, you need to create one view.
Please follow below steps to create a view:
Step 1: Add Tags field in "Fields" section and Please tick the "Create a label" and place Tags into "Label" field.
Step 2: For Tags field you need to "STYLE SETTINGS". Please tick Customize field HTML and Select SPAN form
dropdown in HTML element.
It gives you result as you required.
Comment #3
vidit.anjaria CreditAttribution: vidit.anjaria as a volunteer and at QED42 for QED42 commentedyou can create custom twig template file for tag field and you can create your own html structure and apply comma (,) seperated list of tags