Guys

I am so close to finishing my first radiant site.  Just one last thing to do
to get things finished.  Each of the section in my website has a sub menu.
Works wonderfully.  However, my boss now wants to have further sub menus.
Here's the example:-

Who We Are
  Our Past
    Article One
    Article Two
  Our Present
  Our Future
  Our People
    Partners
    Managers

What my boss wants, is that if the user is in the Our People section or one
of its children, the following would get shown.

Our Past
Our Present
Our Future
Our People
  Partners
  Managers
   
I didn't think it would be too difficult, so created code using the
r:page:if_url syntax as follows:-


<r:find url="/who-we-are/">
  <h1><r:title/></h1>
  <ul>
    <r:children:each>
       <li><a href="<r:url />" title="Click here to find out more about
<r:breadcrumb />"><r:title /></a></li>
       
   <r:page:if_url matches="/our-people/">
          <r:children:each>
           <li><a href="<r:url />" title="Click here to find out more about
<r:breadcrumb />"><r:title /></a></li>
        </r:children:each>
           </r:page:if_url>
    </r:children:each>
  </ul>
</r:find>

What this actually produces is

Our Past
  Partners
  Managers
Our Present
  Partners
  Managers
Our Future
  Partners
  Managers 
Our People
  Partners
  Managers

This is only displayed if you are viewing the Our People section.  I have to
be selective about which sections will have further subsections so can't
simply nest a children:each in another one.  I am just having problems
getting round what actually happening in each context.

Does anybody have any suggestions?

Thanks in advance
Regards
Harvey


This e-mail has been scanned for all viruses by MessageLabs.
_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to