Score:0

List all values in same row in a view

cn flag

I have a view that displays the authors of an article and links to their author page.

Currently the view outputs each author in its own row as a list. I'd like to have it display the authors in one row separated by commas.

It's currently outputting like this:

Suzanne Smith

Jack Johnson

Alex Anderson

I'd like it to output like this: Suzanne Smith, Jack Johnson, Alex Anderson

I came across this question which recommended using the Views Aggregator Plus module, which I have installed. However the screenshots don't work. https://www.drupal.org/forum/support/post-installation/2019-09-19/struggling-to-list-all-values-in-field-on-same-row-in

Can anyone help with this issue?

Thank you!

sonfd avatar
in flag
How do you have your view configured to make it display each author in a new row?
Score:1
jp flag

If you are displaying the Article's Author field in your view, i.e. by setting Format > Show to "Fields", you can configure your field to display all values in the same row. Click on the field (to edit its settings) and expand the "Multiple Field Settings" section. Check the "Display all values in the same row" checkbox.

Image showing the "Multiple Field Settings" section of a Field's settings in the Views UI with the "Display all values in the same row" checkbox checked

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.