I would like to have an option to choose custom templates and wrappers for link details. Is there a way to do that? I assume it would be hack since it's not directly available at the moment. I know I can do this through URL, but I'm using mod_rewrite, so I can't alter my URLs. I like the way it implemented through category edit. Would it be hard to make something like that for links?
Using a custom template without a custom url is illogical as far as I can see, a url can only specify one page at a time. You could do a custom wrapper in a roundabout way by sticking <!-- usewrapper=no --> in the template along with all the desired wrapper content.
I don't see custom wrapper field available in links edit... I thought this would work like condition on wrapper variable - if exists - execute custom wratpper - if doesn't - do the default one. If I include that code into the default template - it will affect all the links - I need it selectively.
Comments on custom templates for link details
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
I would like to have an option to choose custom templates and wrappers for link details. Is there a way to do that? I assume it would be hack since it's not directly available at the moment. I know I can do this through URL, but I'm using mod_rewrite, so I can't alter my URLs. I like the way it implemented through category edit. Would it be hard to make something like that for links?
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I've just done that on one of my sites.
I just replaced the <a href="{LINKDETAILSURL}"><img src="templates/default/images/linktools_details.gif" border="0" alt="Details"> Details</a>
with...
<a href="link.php?action=detail&id={LINKID}&custom=yes&TID=detailsphotos">}"><img src="templates/default/images/linktools_details.gif" border="0" alt="Details"> Details</a>
Your template goes into the custom directory.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
This is not going to work for me since I'm using standard mod_reqrite and wouldn't like to change my URLs.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Using a custom template without a custom url is illogical as far as I can see, a url can only specify one page at a time. You could do a custom wrapper in a roundabout way by sticking <!-- usewrapper=no --> in the template along with all the desired wrapper content.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
I don't see custom wrapper field available in links edit... I thought this would work like condition on wrapper variable - if exists - execute custom wratpper - if doesn't - do the default one. If I include that code into the default template - it will affect all the links - I need it selectively.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Then you want a custom URL.