× KISS International Help Forum. English language, please.

Sub Categories Do Not Save In Order In Overview

Mehr
09 Apr 2011 11:29 #3790

As the categories are sorted in a special way (the tree structure), they come sorted by name out of the database but are then processed by the tree routine, where the subcategories are forced to be displayed under their appropriate parent categories.

The only way to avoid this is to declare all categories as main categories without subcategories.

Otherwise a change in the code which organizes the tree structure would be necessary. This code should be replaced by a code which keeps the sort coming from the database and builds a regular select box rather than a tree stucture select box. But this would be a major affair.


Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
09 Apr 2011 01:47 #3782

Hi Doc

I did as you said,replaced all the

$query .=\" ORDER BY pid, ordering, cat_name\";




Change to
Code:

$query .=\" ORDER BY cat_name\";

Still No Luck I am Afraid,have you got any more ideas on how to fix this.
Thanks Jock

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
08 Apr 2011 12:48 #3777

You may change all occurances of this code. However, the tree structure will be kept. Within the tree, the categories are sorted alphabetically.

To avoid a tree structure, define all categories as main category - no subcategories.


Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
07 Apr 2011 18:54 #3774

Hi Doc,
Had a look at the ksadvertiser.php file
There are several instances of this script

$query .=\" ORDER BY pid, ordering, cat_name\";

which line do i replace
Many Thanks
Jock

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
07 Apr 2011 10:59 #3773

Hi Jock,

I did not try out yet whether it works, but you could try to change the code the following way:
Old

$query .=\" ORDER BY pid, ordering, cat_name\";
Change to
$query .=\" ORDER BY cat_name\";

This will destroy the tree structure, but maybe the categories will be displayed in alphabetical order. If not, restore the old code.


Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
06 Apr 2011 16:57 #3772

Hi Doc,
I dont know anything about PHP all i want to do is to be able to have EVERYTHING categories and subcategories in ALPHABETAICAL order can this be done
Many Thanks
Jock

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum
Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.