Hi Neil, are you trying to read an assigned URL with Rendertags? If so, I can tell you that it doesn't work.
https://groups.google.com/forum/#!topic/reddot-cms-users/s2fFFWboxL4 Am Dienstag, 27. Januar 2015 16:28:35 UTC+1 schrieb Neil: > > 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 reddot-cms-users+unsubscr...@googlegroups.com. To post to this group, send email to reddot-cms-users@googlegroups.com. Visit this group at http://groups.google.com/group/reddot-cms-users. For more options, visit https://groups.google.com/d/optout.