Webmastersite.net
Register Log In

Sort Links does not work with custom tpl

Comments on Sort Links does not work with custom tpl

joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Dec 12, 2006 - 12:10 PM:

The sort links button does nothing when used on a custom "display links" template. Please visit the example URL below and let me know if I did something wrong when I created my custom template.

Example: http://www.gowesleychapel.com/Classifieds/For_Sale

Thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 12, 2006 - 7:51 PM:

What is the template? Anyhow I see no sort links button nor any links.
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Dec 13, 2006 - 3:17 PM:

Sorry, I forgot I posted this thread, and I messed around some more and deleted all the links. The template is a custom one that I have set as the template for viewing this category.

Anyway, the problem of not being able to sort links using the "Sort" button only occurs when I set a specific default sort order for that category.

I'd like the links in this category to be sorted by date descending, and everywhere else by name ascending. But I'd also like for visitors to be able to use the "Sort" button to change that order if they want.

Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 13, 2006 - 7:04 PM:

You have <form action="http://www.gowesleychapel.com/"> there where it should be <form action="http://www.gowesleychapel.com/index.php">

I noticed that problem with the category selector a few versions ago, didn't realize it was in other forms, but I cleaned it out with a bulk replace at the time. Change every
<form action="{DIRURL}">
to
<form action="index.php">
.
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Dec 16, 2006 - 9:33 AM:

When I change the code to <form action="index.php"> , the output reads <form action="http://www.gowesleychapel.com/">. Strange. However, even when I hard-code the URL with <form action="http://www.gowesleychapel.com/index.php">, the Sort button does not work.

You can see this live at http://www.gowesleychapel.com/Classifieds/For_Sale

I have three links so you can see what's going on. The form action URL is hard-coded like above.


EDIT: This category orders links by "time descending" rather than the default for all other categories. When I switch this link order back to "default", the Sort button works...
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 18, 2006 - 7:29 PM:

There isn't even a sort form there at all. Anyhow, the problem was what I described and does not occour in the current template.
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Dec 18, 2006 - 7:35 PM:

I removed the Sort form because it DID NOT WORK when I specified a link order different from the default.

The problem was NOT what you described. If you read my post, you would see that even when I hard-coded the correct URL it did not work. And the form action URL changes on loading from what is specified in the source.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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