Hi Sharon,

I'm not entirely sure, but have you tried using 'Parent'? Basically, I
know that you can get the parent page by using something like
Context:CurrentIndex.Parent.Page. Maybe you can use the same concept
for grandparents. Hope it works.

On May 27, 7:03 am, sharon <[email protected]> wrote:
> Hi All
>
> I want to query using Renedr tags if --> Context:CurrentIndex have
> Grandchildren, i tried
>
>  <reddot:cms>
>   <if>
>     <query valuea="Context:CurrentIndex.HasChildren.HasChildren()"
> operator="==" valueb="Bool:True">
>       <htmltext>
>
>  <navigation:nextlevel>           </htmltext>
>     </query>
>   </if>
> </reddot:cms>
>
> but no use it doesn't work, actually i want to display all the pages
> under home if they don'y have children pages but not able to find a
> way out, if
>
> i execute the following query in second level navigation template
>
> <reddot:cms>
>   <if>
>     <query valuea="Context:CurrentIndex.HasChildren()" operator="!="
> valueb="Bool:True">
>       <htmltext>
> <ul>
> <li><a href="<%!! Context:CurrentIndex.Page.GetUrl!!%>">
> <%!! Context:CurrentIndex.Page.Headline !!%> </a> </li>
> </ul>
> <ul>
> <li><a href="<%!!Context:CurrentIndex.GetUrl()!!%>">
> <%!!Context:CurrentIndex.Headline!!%> </a> </li>
> </ul>
>
>   </htmltext>
>     </query>
>
> Home keeps on repeating for every entry, can i define any loop under
> queries???
>
> Thanks in Advance
> Sharon
--~--~---------~--~----~------------~-------~--~----~
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