By jasont on
how do I set my pager to reverse order?
currently it shows "1 2 3 4 5 Next Last"
I want
Last Previous 5 4 3 2 1
is this possible?
thanks
how do I set my pager to reverse order?
currently it shows "1 2 3 4 5 Next Last"
I want
Last Previous 5 4 3 2 1
is this possible?
thanks
Comments
clearer description
clearer description
First Previous 5 4 3 2 [1] (Where [1] is the absolute latest post)
First Previous 5 [4] 3 2 1 Next Latest (When not viewing latest record)
------
Ive gotten it to work somewhat by editing the page.inc file but I cant figure out how to reverse the 1 2 3 4
« first ‹ previous 1 2 3 4 next › latest »
user views module
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
sort order
Yes, it's definitely possible. Not knowing your Drupal environment, I can only suggest some leads:
- in the pager system that you're using, look for something like this that has 'ORDER BY':
'SELECT n.nid, n.title FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid = %s AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC, n.nid DESC'
- change the 'DESC' to 'ASC'
OR
- play with array_reverse (PHP function)
...
-------------------------------------------------
AdAstra.ca - Optimze the Web. Optimze the World.