Hi
I'm trying to avoid using pre-execute and check if an anchor element
doesn't contain a string ('ac.uk'). I thought the following might work but
it doesn't output anything, even though it should add the CSS class (e.g.
when the anchor element is 'www.bbc.co.uk'):
<a href="<%anc_link%>"
<reddot:cms>
<if>
<query
valuea="Context:Pages.GetPage(Guid:<%inf_GUID%>).GetElementByName(anc_link).Value.ToString().IndexOf('ac.uk')"
operator="==" valueb="-1">
<htmltext>
class="external"
</htmltext>
</query>
</if>
</reddot:cms>
<%hdl_headline%>
</a>
It's similar to this query
<https://groups.google.com/forum/#!searchin/reddot-cms-users/indexof/reddot-cms-users/2dDzsxDxCP0/xp75ImCmbloJ>
but guess I'm using it in a different place.
Is this possible in a <query> tag, and if so, am I close?!
Thanks
Neil
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.