Is it possible to have a basic sort order for all Categories and links, except for certain categories, the links are sorted on a different sort order?
Mar 3, 2003, 12:35 PM
Enthusiast (671 posts)
Mar 3, 2003, 12:35 PM
Post #3 of 7
Views: 2296
Hi,
You can try the following:
In a category view add this to the end of the url:
&sb=Title&so=ASC for example...
so you would have something like:
page.cgi?g=1974&d=1&sb=Title&so=ASC
Where sb is the field you want to sort by and so is the sort order.
Klaus
http://www.ameinfo.com
You can try the following:
In a category view add this to the end of the url:
&sb=Title&so=ASC for example...
so you would have something like:
page.cgi?g=1974&d=1&sb=Title&so=ASC
Where sb is the field you want to sort by and so is the sort order.
Klaus
http://www.ameinfo.com
Mar 3, 2003, 1:05 PM
Enthusiast (671 posts)
Mar 3, 2003, 1:05 PM
Post #5 of 7
Views: 2280
Hi,
Don't have much experience with static mode - but perhaps you could do something like this in your category template (not sure it works though...):
<%set sb = 'Title'%>
<%set so = 'ASC'%>
<%links%>
<%else%>
<%links%>
<%endif%>
You might need to use a global that sort the results for you...
Klaus
http://www.ameinfo.com
Don't have much experience with static mode - but perhaps you could do something like this in your category template (not sure it works though...):
Code:
<%if ID eq '2002'%> <%set sb = 'Title'%>
<%set so = 'ASC'%>
<%links%>
<%else%>
<%links%>
<%endif%>
You might need to use a global that sort the results for you...
Klaus
http://www.ameinfo.com
Last edited by:
klauslovgreen: Mar 3, 2003, 1:06 PM
Mar 4, 2003, 11:16 AM
Administrator (9387 posts)
Mar 4, 2003, 11:16 AM
Post #6 of 7
Views: 2266
Hi,
You couldn't do this with a global as the links are already sorted and returned by the time the template is parsed (and you can't resort them as you only have one page of results available).
This would need to be done as a plugin.
Cheers,
Alex
--
Gossamer Threads Inc.
You couldn't do this with a global as the links are already sorted and returned by the time the template is parsed (and you can't resort them as you only have one page of results available).
This would need to be done as a plugin.
Cheers,
Alex
--
Gossamer Threads Inc.