Gossamer Forum
Home : Products : Gossamer Links : Discussions :

If conditions on links template does not work

Quote Reply
If conditions on links template does not work
Hello

I am setting Links SQL to show detailed pages on only few links. I went the PDF manual, there is perfect example right there, but it would not work for me.

I have created column in links called "LinkType" which is radio button with options as "Regular" and "Detailed" as in the example.

Now, the links that I would like to have the "detailed button" to show in through links.html template, I guess this is what we are supposed to do, but it does not do anything for me.

<%if LinkType eq ‘Detailed’%>
<a href="<%detailed_url%>">Detailed</a>
<%endif%>

This does not print anything at all. I have also tried printing just <%LinkType%> to see if the values are actually there, and yes it does print. Only what does not work is the if statement.

Any help will be greatly appreciated.

Last edited by:

bobbyriat: Jul 24, 2003, 2:53 PM
Quote Reply
Re: [bobbyriat] If conditions on links template does not work In reply to
Try changin your quotes, i.e. change

<%if LinkType eq ‘Detailed’%>

into

<%if LinkType eq 'Detailed'%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [bobbyriat] If conditions on links template does not work In reply to
Thanks. That was it :)