I'm creating a View of staff profiles. It's a simple list of Node's Title filed (which happens to be the person's name. Instead of paging by number of items, I want to group them by first letter of first name. How should I start this?
1 Answer
Views comes with a nice default glossary view out of the box. Go to /structure/views/view/glossary/edit, enable it and set it to filter for your content type. viola.
And in case you are wondering where the Magic happens then you would find it in the contextual filter MORE options.
-
Nigel Waters, I have taken the liberty to add a few more things to the answer hope that is fine with you. :-) Commented Jan 31, 2013 at 17:34
-
-
This is wonderful. I found the glossary mode and can use that contextual filter. How does one go about building the attachment (pager) which lists the first letter?– RickCommented Jan 31, 2013 at 18:11
-
-
I have a follow up question about this regarding how to hide the number count in parenthesis next to the first letter pagination. As in how might I hide the count to only have the first letter... drupal.stackexchange.com/questions/60846/…– RickCommented Feb 11, 2013 at 16:55