Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with nofollow tag

Quote Reply
Problem with nofollow tag
I added a new field to the links table, "noFollow", which is an Enum with "Yes" and "No" as the possible values. I added it to the validate form so that the reviewer can select to add a nofollow tag to links if they choose. I'm having trouble getting the build function to add the nofollow tags to the links. Here's the link template I'm using:

Code:
<%if noFollow eg 'No'%>
<li><strong><a href="<%URL%>"><%Title%></a></strong>
<%elseif noFollow eg 'Yes'%>
<li><strong><a href="<%URL%>" rel="nofollow"><%Title%></a></strong>
<%endif%>

Whichever I put first in the "if" loop is the one that get's built. ie, if I reverse the order of the above, all links get the nofollow tag.

An ideas?

Thanks.
Subject Author Views Date
Thread Problem with nofollow tag Spacemanspiff 3134 Sep 9, 2007, 8:17 PM
Post Re: [Spacemanspiff] Problem with nofollow tag
rascal 3065 Sep 9, 2007, 8:52 PM
Thread Re: [Spacemanspiff] Problem with nofollow tag
tandat 3079 Sep 9, 2007, 8:54 PM
Post Re: [tandat] Problem with nofollow tag
rascal 3041 Sep 9, 2007, 8:58 PM
Thread Re: [Spacemanspiff] Problem with nofollow tag
brewt 3041 Sep 9, 2007, 9:06 PM
Post Re: [brewt] Problem with nofollow tag
Spacemanspiff 3055 Sep 10, 2007, 7:32 AM