View Single Post
  #7  
Old 04-14-2005, 01:59 PM
  wowfundraising's Avatar 
wowfundraising wowfundraising is offline
 

Newbie
  
Join Date: Mar 2005
Posts: 8
 

Default changing order of categories in admin area only

I don't know if this is what you are looking for or not... but it was something that I changed.

Within the admin area, when you click on "categories", it goes to the "Categories Management" page, url admin/categories.php.

I reorder my categories list quite a bit depending on new additions and what I want to promote more. It was getting difficult to scan this list alphabetically and type in all the "pos" numbers.

So... in include/categories.php, around line 71 (depending on what you've already modded) I did the following:

Code:
elseif (defined('MANAGE_CATEGORIES')) $sort_condition = " ORDER BY $sql_tbl[categories].order_by, $sql_tbl[categories].category"; // original code $sort_condition = " ORDER BY $sql_tbl[categories].category, $sql_tbl[categories].order_by";

Basically just reversed the sorts it was using. Now they display in order by "pos" instead of alphabetically.

Like I said, don't know if this is what you wanted. I did.

Scott
__________________
Version 4.0.12
Reply With Quote