I have a View that list content of type Bio
(the biographies of people). However, I would like to format it so that they are grouped under different headings.
I added a new field to the Bios
content type which is a dropdown list with three different options - Foo
, Bar
and Baz
. What I want to do is display the people under the heading of their respective group.
Currently:
- John Doe
- Jane Doe
- Jack Doe
- Juanita Doe
- Jim Doe
What I want:
#Foo
- John Doe
- Jane Doe
#Bar
- Jack Doe
- Juanita Doe
#Baz
- Jim Doe
You should be able to do the grouping simply within views. No need to touch the template.
Here's how to group:
That should be it! Let us know if it works for you.