The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Order of Categories
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1124450692

Message started by Peter on 08/19/05 at 13:24:52

Title: Order of Categories
Post by Peter on 08/19/05 at 13:24:52

I can not see how to sort order that categories are shown.
I understand why items are not sorted (big arrays - previous answer) but I would like categories to appear as entered. At present there does not appear to be any order, alphabetical, as entered or anything.
Any advice gratefully received.

Title: Re: Order of Categories
Post by Dieter Werner on 08/19/05 at 14:07:31


Peter wrote:
I can not see how to sort order that categories are shown.
I understand why items are not sorted (big arrays - previous answer) but I would like categories to appear as entered. At present there does not appear to be any order, alphabetical, as entered or anything.
Any advice gratefully received.

The table of categories is a simple hash.
That means:
it is a list of
key => value
pairs.


Code:
#-#############################################
# Edit your Auction-Categories
#-#############################################
                       # English            #German
%category = (    
   yourcat05            => ['Your Categorie 5',      'Kategorie 5',      ],
   yourcat06            => ['Your Categorie 6',      'Kategorie 6',      ],
   yourcat07            => ['Your Categorie 7',      'Kategorie 7',      ],
   yourcat08            => ['And so on ...',      'Und So Weiter ...',      ],
);


The sorting order is 'by key' (see sub disp_cat).

Title: Re: Order of Categories
Post by Peter on 08/19/05 at 20:03:56

Thanks

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.