4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: cch on July 14, 2009, 06:40:36 PM

Title: Auto Cat Sorting
Post by: cch 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
Title: Re: Auto Cat Sorting
Post by: budduke 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
Title: Re: Auto Cat Sorting
Post by: cch 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
Title: Re: Auto Cat Sorting
Post by: kai 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. ;)