Webmastersite.net
Register Log In

Link sort option not working
Can't sort links in category.

Comments on Link sort option not working

jsflinks
Experienced

Usergroup: Customer
Joined: Jul 28, 2005

Total Topics: 30
Total Comments: 55
Posted Nov 10, 2005 - 12:28 AM:

Hi,
I'm having trouble getting the links in a category to sort using the form action buttons. (The default sort works.) I don't recall it always being like this. I may have changed something that is causing the error, but I can't find it. I noticed that I could sort links in the "search results" page using the form, but not on a regular "category" page. The two forms on the category and search results pages are quite different, so I didn't think it was as simple as copying over the one that worked. (I tried, it didn't work.)

The form code I'm referring to is pasted below. Can you tell me what's missing or wrong?

A sample page where this isn't working is here:
www.elementlist.com/lnx/ind...action=displaycat&catid=56

Notice that if you try to sort by, say, the title and click "sort", nothing happens.

Any suggestions?

Thanks
Jackie


<form action="index.php">
<input type="hidden" name="todo" value="orderlinks"> <input type="hidden" name="action" value="displaycat"> <input type="hidden" name="catid" value="{CATID}"> <font size="-1">Sort links by <select name="orderlinks">
<option value="id">newest</option>
<option value="lastedit">last edited</option>
<option value="title">title</option>
<IF {SWITCH_RATINGS}>
<option value="rating">rating</option>
<option value="votes">votes</option>
</IF>
<IF {SWITCH_HITS}>
<option value="hits">hits out</option>
<option value="hitsin">hits in</option>
</IF>
<IF {SWITCH_COMMENTS}>
<option value="numcomments">number of comments</option>
</IF>
</select> in <select name="ascdesc">
<option value="asc">ascending</option>
<option value="desc">decending</option>
</select> order, and show <select name="perpage">
<option value="{PERPAGE}">{PERPAGE}</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
</select> links per page.</font> <input type="submit" value="Sort" class="button">
</form>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 11, 2005 - 4:29 AM:

The html in the default template works, just use that. (Tested in 3.3.0, but presumably it worked in 3.12... if not, it would in 3.16)
rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted Dec 04, 2005 - 2:23 PM:

Hi,

I think you need to go in and edit that category sort from inside that specific category as it is overriding the other setting.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 05, 2005 - 4:37 PM:

The in-page selector would still override the category default order.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.