Hi Jian,

your recommendation works better, thanks a lot.

Ibrahim

On 19 July 2011 17:42, Jian Huang <[email protected]> wrote:

> Hi Ibrahim,
>
> I think the first rendertag should be
>
> <query valuea="Context:Pages.GetPage(Guid:<%info_pgGuid
> %>).Elements.GetElement(anc_link_page).GetHtml()" operator="=="
> valueb="">
>
> also, the second rendertag would break because <%anc_link_page%> will
> out in & in Management Server, and & breaks rendertag.
>
> Alternative, I would recommend using
>
> <reddot:cms>
> <if>
>    <query valuea="<!IoRangeConditional><!IoRangeRedDotMode><!
> IoRangeNoRedDotMode><%anc_page%><!/IoRangeNoRedDotMode><!/
> IoRangeRedDotMode>1<!/IoRangeConditional>" operator="==" valueb="1">
>        <htmltext>
>            Not Empty
>        </htmltext>
>    </query>
>    <query type="else">
>        <htmltext>
>            Empty
>        </htmltext>
>    </query>
> </if>
> </reddot:cms>
>
> Best of luck.
>
> If you want some assistance, please visit the forum at
> http://www.solutionexchange.info/
>
> On Jul 19, 6:16 am, Ibrahim Sawadogo <[email protected]> wrote:
> > Hi Guys,
> >
> > the following render tag always renders "true", never false even if the
> link
> > is empty. Could someone please tell me what am doing wrong?
> >
> > <query
> >
> valuea="Context:Pages.GetPage(Guid:<%info_pgGuid%>).GetElementByName(anc_link_page).GetHtml()"
> > operator="==" valueb="">
> >
> > or
> >
> > <query valuea="<%anc_link_page%>" operator="!=" valueb="">
> >
> > Thanks,
> > Ibrahim
>
> --
> You received this message because you are subscribed to the Google Groups
> "RedDot CMS Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/reddot-cms-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to