Webmastersite.net
Register Log In

custom templates for link details
like in categories

Comments on custom templates for link details

gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Sep 04, 2006 - 1:42 AM:

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?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 04, 2006 - 2:24 AM:

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.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Sep 04, 2006 - 12:52 PM:

This is not going to work for me since I'm using standard mod_reqrite and wouldn't like to change my URLs.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 04, 2006 - 11:19 PM:

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.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Sep 05, 2006 - 6:47 AM:

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.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 05, 2006 - 6:33 PM:

Then you want a custom URL.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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