Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Sorting categories in v3.x

Quote Reply
Sorting categories in v3.x
Is there anyway I can force a sort on the following categories, for example:

Code:
10.25 inch (1)
[/url] 12.25 inch (1)
[/url] 15 inch railways (3)
[/url] 7.5 inch (1)

I would like it to read in proper order i.e. 7.25, 10.25, 12.25 and 15

Sure I am missing something very simple ... I usually do Blush

Wayne

Quote Reply
Re: [balita] Sorting categories in v3.x In reply to
Hi,

The easiest way - is to make a new field via Database > Category > Properties > Add Field, called CatSort.

Then, go to Setup > Build Options , and change build_category_sort, so that it has "CatSort ASC, Name" in it.

Then, you need to add a number to the categories (not gonna be very fun with lots of categories though :P)

For example:

Quote:
CatSort: 2 Name: 10.25 inch
CatSort: 3 Name: 12.25 inch
CatSort: 4 Name: 15 inch railways
CatSort: 1 Name: 7.5 inch

..and that would then make them show up in the order:

Quote:
7.5 inch
10.25 inch
12.25 inch
15 inch railways

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Sorting categories in v3.x In reply to
Thanks Andy

Was hoping it wasn't something like this Unsure hoped I had missed the v2 method someplace. Ah well it will be a once over job luckily the Cats have not grown too much yet.

Just wondering - if the subcat only has one entry can I leave that blank and just use this for sub cats with 2 or more entries.

Happy New Year to you.

Regards

Wayne

Last edited by:

balita: Jan 2, 2008, 5:12 AM