We’ve been back to work on the site now for a few days. Here’s my current to-do list:
- Admin Screen for Editing Wine Entries
Star Ratings for Wines- Wine Recommendations
Comment SystemPagination for Search Results
As you can see, I’ve made some progress on the search results page. Things are formatted a little better, but the biggest addition is the pagination links at the top which makes it now possible to browse to every wine in the database (we used to show just the first 15 results).
Yahoo! has a pretty interesting design pattern for search results pagination over at their developer network. I decided, however, to mimic the pagination done at digg.com. I’m pretty happy with the results, although I was torn over whether to use numbered pages or alphabetical links. In the end, I thought the numbers were more flexible.
You can see what the results of all this by doing a search on the alpha site.
My code for the pagination is a mess (like a lot of the WineLog code at this point). I might spend some time fixing it up now that it’s working though; this is code that may be useful to others trying to mimic digg’s pagination scheme. Let me know if you’re interested in seeing it and I’ll move it up my list of to-dos.
Subscribe by RSS
Subscribe by Email
Categories
- Announcement (39)
- Books (2)
- Bug Fix (2)
- Features (28)
- Food (19)
- Foreign Wines (10)
- Free Stuff (2)
- Fun (16)
- Gadgets (1)
- General Overview (15)
- Giveaway (2)
- Holidays (12)
- Introspection (8)
- Mobile (3)
- Movies (3)
- News and Interest (55)
- Poll (1)
- Press Release (2)
- Recipes (1)
- Red Table Wine (11)
- Restaurants (16)
- Sparkling Wine (7)
- Special Offers (30)
- Storage (4)
- Technical Issues (13)
- Television (3)
- Travel (25)
- Uncategorized (8)
- User Experience (46)
- Users (5)
- Web (21)
- Wine (92)
- Wine at Home (13)
- Wine Blogs (15)
- Wine Events (24)
- Wine Investing (2)
- Wine Marketing (6)
- Wine Merchandise (10)
- Wine Pairing (6)
- Wine Products (8)
- Wine Question (2)
- Wine Regions (22)
- Wine Review (44)
- WineLog (70)
- Wineries (24)
- Wines Under $10 (5)
Archives
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- March 2006
- February 2006
- January 2006



3 Responses to “Digg-style Pagination for Search Results”
I am impressed by your pagination design and was wondering if you might be willing to share it as a code example which I could modify for my own work. Myself, I use completed result sets from a search engine in the form of an array to which I need to add page numbers. I would appreciate any help you might be willing to give.
-danke
Danke,
Thanks for the compliments on the design, although I took the look straight from Digg. I imagine their designer was the first to do it this way, but I have seen other sites with similar pagination. Don’t know which came first.
I’d love to give you some of the code I used for pagination, but (1) it’s embarrassingly bad and (2) it would probably confuse you more than help you.
I’m fond of how it looks and works though. And so I have every intention of writing a modular function to do pagination like this (so I can use it on other sites of mine). There’s a chance I may get to it this weekend. If I do, I’ll definitely post it here and send some code to your email address.
[…] In this post, I promised to show the world how I achieved my digg-style pagination effect. I’ve written a demo over at Stranger Studios. […]