Add the custom parameters to the non-rewritten version (which is always available even when using url rewriting), which for the link details page is link.php?action=detail&id={LINKID}
Paul wrote: Add the custom parameters to the non-rewritten version (which is always available even when using url rewriting), which for the link details page is link.php?action=detail&id={LINKID}
I have just turned rewriting on and then regenerated everything. I have certain categories going to a custom details page which worked fine before turning rewriting on. Now I just get a 404 error. Those not going to the custom details page work fine.
That's because you're not typing a legal url. You need a file name before you can pass parameters to it, be it index.php or link.php, and then a ? before you add any URL parameters. Read the manual entry on custom templates: scripts.webmastersite.net/w..._Custom_Templates-153.html
so is using <a href="{LINKDETAILSURL}&custom=yes&TID=detailsdogs"> is wrong and I must enter the actual url?
But using link.php?action=detail&id={LINKID}&custom=yes&TID=detailsdogs doesn't rewrite though, so if that's right then there's not a lot of point in me using rewrite then for this.
It can't magically guess how you would want it to rewrite, of course. If you really want to rewrite custom urls then you can create a rule for it in your htaccess.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Costom templates
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
If I am using the URL rewrite, how do I link to a custom template and wrapper for details pages?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Add the custom parameters to the non-rewritten version (which is always available even when using url rewriting), which for the link details page is link.php?action=detail&id={LINKID}
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Add the custom parameters to the non-rewritten version (which is always available even when using url rewriting), which for the link details page is link.php?action=detail&id={LINKID}
I have just turned rewriting on and then regenerated everything. I have certain categories going to a custom details page which worked fine before turning rewriting on. Now I just get a 404 error. Those not going to the custom details page work fine.
This is the url it gives after rewrite...
www.thecanaandog.co.uk/deta...om=yes&TID=detailsdogs
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed. You can also workaround it by putting custom=... first in the url meanwhile.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Fixed. You can also workaround it by putting custom=... first in the url meanwhile.
Just upgraded to 4.0.11 but it still doesn't work.
I tried putting the custom.. first but that doesn't work either - I end up with the url: www.thecanaandog.co.uk/cust...ils/velikayas_rehitsa.html
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
That's because you're not typing a legal url. You need a file name before you can pass parameters to it, be it index.php or link.php, and then a ? before you add any URL parameters. Read the manual entry on custom templates: scripts.webmastersite.net/w..._Custom_Templates-153.html
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
so is using <a href="{LINKDETAILSURL}&custom=yes&TID=detailsdogs"> is wrong and I must enter the actual url?
But using link.php?action=detail&id={LINKID}&custom=yes&TID=detailsdogs doesn't rewrite though, so if that's right then there's not a lot of point in me using rewrite then for this.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It can't magically guess how you would want it to rewrite, of course. If you really want to rewrite custom urls then you can create a rule for it in your htaccess.