The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Discussion of Functions >> How do I get the Categories to Change Order?
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1169915812

Message started by simcoe on 01/27/07 at 17:36:51

Title: How do I get the Categories to Change Order?
Post by simcoe on 01/27/07 at 17:36:51

Here is another How Do I?

I want to have the categories in a particular order.
It will be an art auction site and I want Paintings, Drawings, Sculpture, Prints, Other

It seems to alpha-sort them.  

I tried to trick the sys with letters or numbers in front of the categories and that doesn't work.

sacredeye.ca

Title: Re: How do I get the Categories to Change Order?
Post by Dieter Werner on 01/27/07 at 18:25:40

You can use numbers ...

Code:
%category = (
   130      => ['Audio & Video',   'Audio & Video',              ],
   110      => ['Computer',        'Computer',              ],
   120      => ['Electronics',      'Elektronik',              ],
   100      => ['Other Junk',      'Sonstiges',              ],
);


and the sorted result will be:

Other Junk
Computer
Electronics
Audio & Video

Title: Re: How do I get the Categories to Change Order?
Post by simcoe on 01/27/07 at 18:40:51

Dieter,
Thank You,
It worked perfectly. :)

Title: Re: How do I get the Categories to Change Order?
Post by Pajo on 12/02/08 at 15:32:37


2A2F2622254B0 wrote:
You can use numbers ...

Code:
%category = (
   130      => ['Audio & Video',   'Audio & Video',              ],
   110      => ['Computer',        'Computer',              ],
   120      => ['Electronics',      'Elektronik',              ],
   100      => ['Other Junk',      'Sonstiges',              ],
);


and the sorted result will be:

Other Junk
Computer
Electronics
Audio & Video

What If 30 categories?

Thanks

Title: Re: How do I get the Categories to Change Order?
Post by Dieter Werner on 12/02/08 at 21:38:02

Write ...

Code:
%category = (
  100      => ['Audio & Video',   'Audio & Video',              ],
  101      => ['Computer',        'Computer',              ],
  102      => ['Electronics',      'Elektronik',              ],
  103      => ['Other Junk',      'Sonstiges',              ],
);

and so on ...

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