PEAK XOOPS - default category sort in englishin japanese

default category sort

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/8 21:16
ukandrewf  企霹始   Posts: 3
great module - many thanks :)

how can i define which order categories will sort by default?

I'd like default sort to be by popularlity for all categories for example.

thanks

Andrew
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/7/9 18:02
GIJOE  黎扦烦菱   Posts: 4110
hi ukandrewf.

It's an easy hack.
line 33 of viewcat.php
// Orders
$myalbum_orders = array(
	"titleA" => array( "title ASC" , _ALBM_TITLEATOZ ) ,
	"dateA" => array( "date ASC" , _ALBM_DATEOLD ) ,
	"hitsA" => array( "hits ASC" , _ALBM_POPULARITYLTOM ) ,
	"ratingA" => array( "rating ASC" , _ALBM_RATINGLTOH ) ,
	"titleD" => array( "title DESC" , _ALBM_TITLEZTOA ) ,
	"dateD" => array( "date DESC" , _ALBM_DATENEW ) ,
	"hitsD" => array( "hits DESC" , _ALBM_POPULARITYMTOL ) ,
	"ratingD" => array( "rating DESC" , _ALBM_RATINGHTOL ) ,
) ;
if( isset( $_GET['orderby'] ) && isset( $myalbum_orders[ $_GET['orderby'] ] ) ) $orderby = $_GET['orderby'] ;
else $orderby = 'titleA' 'hitsD' ;
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/7/9 19:25
ukandrewf  企霹始   Posts: 3
thanks much appreciated
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!