3

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 1

10

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.

enter image description here

6
  • 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
  • no problemo @Mohammed Shameem Commented Jan 31, 2013 at 17:41
  • 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?
    – Rick
    Commented Jan 31, 2013 at 18:11
  • Never mind. This is a clone and customize activity!
    – Rick
    Commented Jan 31, 2013 at 18:13
  • 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/…
    – Rick
    Commented Feb 11, 2013 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.