Creating an Alpha Pager with Views 2 and Drupal 6

UPDATE: Earl comments below how this is already built in. Two different ways to achieve a similar result, each with their own pros/cons.

Hats off to Earl Miles and the rest the views developers they have done a tremendous job with Views 2. While the interface is entirely different from that of Views 1, it is so much more intuitive that within a few minutes I had quickly forgotten my bewildered “oh no, I know nothing” look :)

From reading all of the docs and quietly watching development commits, I knew Views 2 was going to eliminate a lot of the Views 1 helper modules and open up a whole new world of awesomeness. While I haven’t seen many blog posts detailing just which functionality/modules have been replaced with Views 2, I wanted to kickstart things with my own discovery as I played around with Views 2 quite thoroughly this afternoon.

With Views 1, to build an alpha pager you would use the views alpha pager module in conjunction with your view. But what about Views 2?

Well it’s not so straightforward. I read somewhere about some sort of “glossary” view, but how could that be used to create an alpha pager? Well turns out, quite easy. Here’s how:

First, create a new page view and set your path to "directory"

Assuming you want your pager to be based on the nodes title, add in an argument: "Node: Title"

Read this next:

Do you want to upgrade your knowledge aboutLife, Startups, Mobility, or Detroit?

Hello!

Welcome to my home on the internet! I live in Metro Detroit with my amazing wife and 3 kids. I enjoy helping people be great and build great things, investing in startups, and contributing to the startup renaissance in Detroit. Learn more.