Gossamer Forum
Quote Reply
sort by fields
is there any way I can have my links sorted by fields?
example

If I list my links under headings like this

ID Title URL owner Date Added
1 Title A <%URL%> A 2005-1-01
2 Title B <%URL%> B 2005-1-01
3 Title C <%URL%> C 2005-1-02
4 Title D <%URL%> D 2005-1-03


Is there any way I make my visitors sort by date when they click on the Date Added heading or by any of the headings?
Quote Reply
Re: [Abusaki] sort by fields In reply to
Hi,

You can do it through page.cgi;

page.cgi?g=My_Test/Category/index.html;sb=Add_Date

sb = sort by
mh = max hits (i.e hits per page)

..etc

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!

Last edited by:

Andy: Jan 25, 2005, 8:35 AM
Quote Reply
Re: [Andy] sort by fields In reply to
Sorry Andy,
I could not get that,
could you please explain it a bit more

do i have to write it this way

http://www.domain.com/...dex.html;so=Add_Date


if so can i use

http://www.domain.com/<%category%>/page.cgi?g=My_Test/Category/index.html;so=Add_Date



PS i am trying to put this on the category pages

Last edited by:

Abusaki: Jan 25, 2005, 8:31 AM
Quote Reply
Re: [Abusaki] sort by fields In reply to
Hi,

I just tried these combinations on your site, and it seems to work well :)

page.cgi?g=Best_Buy;sb=TimeStmp;so=ASC
page.cgi?g=Best_Buy;sb=TimeStmp;so=DESC

page.cgi?g=Best_Buy;sb=Title;so=ASC
page.cgi?g=Best_Buy;sb=Title;so=DESC

page.cgi?g=Best_Buy;sb=Hits;so=DESC
page.cgi?g=Best_Buy;sb=Hits;so=ASC

..etc

sb = sort by (i.e Title,URL,Description,TimeStmp,Hits,Votes,etc)
so = sort order (ASC or DESC)

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] sort by fields In reply to
Hi Andy,
could you email me a sample of the url you used?
Quote Reply
Re: [Abusaki] sort by fields In reply to
Erm, I just posted them =)

http://your.domain.com/cgi-bin/page.cgi?g=Best_Buy;sb=TimeStmp;so=ASC

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] sort by fields In reply to
i am getting an error

We don't seem to have a category by the name Best Buy.


I think i need to put in the full path, I am putting it in my category.html

thiais what I put in

<a href="http://www.domain.com/...>;sb=Hits;so=DESC">

what do i need change the <%category%> to


so I can get the full path because Best Buy is a subcat
Quote Reply
Re: [Abusaki] sort by fields In reply to
Something like this should work;

<%db_cgi_url%>/page.cgi?g=<%Full_Name%>;sb=TimeStmp;so=ASC

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] sort by fields In reply to
thanks Andy,
worked well,
I was putting in Full Name instead of Full_Name