i have a site about books which has a catalog
in it, there’s a page /catalog/, and it’s basically a table with headings including Book Name, Author, and Number of Pages
each post i make is about 1 book, and has custom fields name, author, and pages
at the top of the table, i want to have buttons that say “Sort by Book Name”, “Sort by Author”, and “Sort by Number of Pages”
so for example, when i click on “Sort by Book Name” the table will alphabetically sort all the posts based on the book’s title (which in turn is based on the “name” custom field of each post)
and i’d prefer the url to say /catalog/ or something like /catalog/?sort=name, like the way deviantart.com does it
ultimately i’d prefer it to be ajaxable, but right now i don’t care if it isn’t ajaxed.
at the moment i know how to sort this specific /catalog/ page in any of the 3 ways (book title, author, page number). the problem is getting a button (eg. the “Sort by Book Name” button) to reload the page but with a different sort order.
if anyone can help, i’d be very thankful!!! 🙂
- The topic ‘Different sort ordering ajaxed?’ is closed to new replies.