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:
<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.
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.