View Full Version : Category sorting ?
SawyeR
06-12-2005, 03:41 AM
By default,ArticleLive sort the category list ascending (ABC ...),but I dont want it be sort like this . How to order the category list by whatever I like .
Thanks .
Bin Yousif
06-13-2005, 07:12 AM
By default,ArticleLive sort the category list ascending (ABC ...),but I dont want it be sort like this . How to order the category list by whatever I like .
Thanks .
Same question.. Or how to order catogries by their ID numbers ??
Chris S
06-14-2005, 01:36 AM
Hi,
Where did you want to change this - in the left column, when you click 'categories', another place ?
By default,ArticleLive sort the category list ascending (ABC ...),but I dont want it be sort like this . How to order the category list by whatever I like .
Thanks .
Janet
07-30-2005, 11:27 AM
Yes, I'd like to have this functionality. To be able to set a sequence number when I create a category so that they appear in the sequence I want rather than alphabetically.
Jordie
08-02-2005, 03:17 AM
Hi, its possible to change the sorting order by going to "ViewCategoryAdvancedPanel.php" (in the panels folder of your chosen template) and then to line 226 which should be like: $query = sprintf("select * from %scategories where ParentID='%d' order by Name asc", $GLOBALS["AL_CFG"]["tablePrefix"], $GLOBALS["CategoryId"]);
"order by Name" controls the order. the "asc" afterwards means sort ascending. you can change this to "desc". You can also replace "Name" with "CategoryID" to sort by the Id's. E.g.:$query = sprintf("select * from %scategories where ParentID='%d' order by CategoryID asc", $GLOBALS["AL_CFG"]["tablePrefix"], $GLOBALS["CategoryId"]);
Unfortunately you can not specifically select the order they are displayed in.