Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problems With Tags

Quote Reply
Problems With Tags
Hi All,

In my old links database (V2) i had the following in the link.html template

Code:
<%if isalt%>
<%AltLink%>
<%endif%>
<%ifnot isalt%>
<%URL%>
<%endif%>
In the database i had two URL fields, one for a tracking URL (AltLink) to be used in the jump ID but still display the actual URL. BUT in LSQL V2r1 it only displays the url if isalt is set to yes and doesnt display the default URL tag if isalt is set to "no". Any ideas why and how I can rectify this.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Problems With Tags In reply to
What is the value of isAlt?

If you set it to Yes/No, you have to actually check for 'Yes' and 'No'.

You can only use <%if tag%> if tag contains '0' or '' for 'no' and _ANYTHING_ else for yes.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Problems With Tags In reply to
Simple fix, change:

<%if isalt%>

to:

<%if isalt eq 'Yes'%>

Ugly fix, edit Site_HTML.pm and add isalt to the list of values that get deleted like isNew, isCool, and isPopular.

Cheers,

Alex

--
Gossamer Threads Inc.