one more render tag conditional question

19 views
Skip to first unread message

Dmitry Terner

unread,
Jun 30, 2011, 3:37:16 PM6/30/11
to reddot-c...@googlegroups.com
Is there a way to evaluate AND/ OR inside the valueb something like the below perhaps?

<reddot:cms>
  <if>
    <query valuea="Context:CurrentPage.Elements.GetElement(opt_Type).GetHtml()" operator="!=" valueb="Str:Industry || Str:Capability">
      <htmltext>
          <li><a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!! Context:CurrentIndex.Headline !!%></a></li> 
      </htmltext>
    </query>
  </if>
</reddot:cms>
 

markus giesen

unread,
Jul 4, 2011, 1:47:10 AM7/4/11
to RedDot CMS Users
Have a look at the list:
http://www.reddotcmsblog.com/reddot-cms-render-tags-the-ultimate-list

maybe try something like
<reddot:cms>
<if>
<query
valuea="Context:CurrentPage.Elements.GetElement(opt_Type).GetHtml().IndexOf()"
operator="&gt;" valueb="Int:0">
<htmltext>
<li><a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
Context:CurrentIndex.Headline !!%></a></li>
</htmltext>
</query>
</if>
</reddot:cms>

above example is untested, have a look at the list, if you're familiar
with .net/javascript you might make some sense of it :)
Reply all
Reply to author
Forward
0 new messages