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.
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.
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
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.
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...
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.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Sort Links does not work with custom tpl
Nothing is impossible...
Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida
Total Topics: 36
Total Comments: 91
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
What is the template? Anyhow I see no sort links button nor any links.
Nothing is impossible...
Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida
Total Topics: 36
Total Comments: 91
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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 to .
Nothing is impossible...
Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida
Total Topics: 36
Total Comments: 91
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...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Nothing is impossible...
Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida
Total Topics: 36
Total Comments: 91
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.