Bugs » New Template function Default not working

added on Aug 1, 2007 by Crow
I just noticed the new function you added to the recent release. I tried adding it to my template and with variations of
things, it does not really work.

This is my template without it:

{TABLE cols="7" width="100%" align="center" cellpadding="0"
cellspacing="0" class="hardlinks"}<a href="{$URL}" title="{$DESCRIPTION}"
target=_blank">{$ANCHOR}</a>

Then I tried this so I get a link text but did not work

{TABLE cols="7" width="100%" align="center" cellpadding="0"
cellspacing="0" class="hardlinks" default="<a
href="http://www.nastylittlenymphos.com/1hardlinks/">Your Link Here</a>"}<a
href="{$URL}" title="{$DESCRIPTION}" target=_blank">{$ANCHOR}</a>

Any ideas on what I need?

Crow
added on Aug 1, 2007 by v0id
that would be because of the quotes in the default="", either use default='<a
href="...">..</a>' or default="<a href='...'>..</a>".

I haven't made it possible to escape quotes yet, so eg use double quotes for the default="" and single quotes
for everything inside.

- v0id
added on Oct 19, 2007 by v0id
hey, just wanted to let you know that I have made escaping possible, so if you use something like

{TABLE cols="7" width="100%" align="center" cellpadding="0"
cellspacing="0" class="hardlinks" default="<a
href=\"http://www.nastylittlenymphos.com/1hardlinks/\">Your Link Here</a>"}<a
href="{$URL}" title="{$DESCRIPTION}" target=_blank">{$ANCHOR}</a>

everything is fine

- v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.