Author Topic: Auto Cat Sorting  (Read 4246 times)

0 Members and 1 Guest are viewing this topic.

Offline cch

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Auto Cat Sorting
« on: July 14, 2009, 06:40:36 PM »
Hi

On a previous version of 4images I found a piece of code that auto sorted the cats so I didn't need to use the dropdown to place it at the beginning or at the end etc...

Now I tried to find the code in the file using version 1.7.7 but of no avail.

Is there a way of making this work in 1.7.7

Here's the code:

Search for this line in global.php and admin/categories.php

Code: [Select]
ORDER BY cat_order, cat_name ASC";
and replace it with
Code: [Select]
ORDER BY cat_name ASC";
Jan posted this code on this thread

http://www.4homepages.de/forum/index.php?topic=1254.0

As I said the code isn't in the 2 files so if someone can give me a piece of code to get it working I'd be grateful.

Thanks

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: Auto Cat Sorting
« Reply #1 on: July 18, 2009, 12:15:17 AM »
The sorting of categories has been added with version 1.7.7
It can be found in the admin control panel under settings, in the category settings.

I did not even know it was there until I was looking at some of the code that changed in the global.php file
Buddy Duke
www.budduke.com

Offline cch

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Re: Auto Cat Sorting
« Reply #2 on: July 18, 2009, 09:43:20 PM »
Hi budduke

I've fixed this myself, it was so simple I'm suprised that no other member helped me.

Thanks

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Auto Cat Sorting
« Reply #3 on: July 19, 2009, 06:01:02 PM »
it was so simple I'm suprised that no other member helped me.

Perhaps no reply BECAUSE it is so simple. ;)
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search