Hi.  I recently started using Radiant to host http://www.vfct.com/ .  I'm not 
using many of the more sophisticated features (nearly everything is hard-coded 
in some way).  I'd like to get away from having to hard-code my sidebar 
navigation (see http://www.vfct.com/counterterrorism/odin-uldris/ for a good 
example of what I'm doing.

Example:
<dl>
  <dt>Counterterrorism</dt>
  <dd class="current">Child Page 1</dd>
  <dd class="subsection">Child of Child Page 1</dd>
  <dd>Child Page 2</dd>
</dl>

I want to display all of the children of the parent page, and then display the 
children of the current page only.  In this example, Child Page 2 has children, 
but I am not showing them.

I've gotten close using 
<r:children:each>
 <dd><a href...></dd>
 <r:children:each>
   <dd class="subsection"><a href...></dd>
 </r:children:each>
</r:children:each>

But then I get all second level children including those under Child Page 2.  I 
attempted to use 

<r:if_url matches="<r:url />">...</r:if_url> but it looks like <r:url /> isn't 
executing or at least isn't matching (it does work if I type the url in 
manually instead of using the tag).

An attempt to do this with r:navigation, feeding it the results of 
r:children:each failed as well, as r:children:each didn't seem to execute 
within 

<r:navigation urls="<r:children:each><r:title />: <r:url 
/>...</r:children:each>"...

Are the problems I'm experiencing (under 0.6.2) normal and expected?  If so, is 
there a workaround?  If this is not normal, could someone provide a quick 
example of working code?  

Thanks.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to