New to RadiantCMS. Not a developer. I'm trying to create an n-tiered (three
levels) standard navigation for a test site. Grandparents - Parents -
Children. This n-tiered navigation should always show the Grandparents, but
only show the children when a parent is clicked on. I don't want any
third-tier cousins to see one another.
1. Grandparents - Main/Top Navigation - each link representing a site
section
2. Parents/Children - Right Sidebar Navigation - Second-tier and
Third-tiers. Third-tier only opens when their Parent is clicked on.
Grandparents, Parents and all Uncles and Aunts remain visible.
I used two snippets found in online examples:
====================================
Main Navigation
<ul class="main-nav">
<r:find url="/"/>
<r:children:each>
<li> <r:link /> </li>
</r:children:each>
<r:/find>
</ul>
Subnavigation
<ul>
<r:children:each>
<li>
<r:link />
<ul>
<r:children:each>
<li><r:link /></li>
</r:children:each>
</ul>
</li>
</r:children:each>
</ul>
====================================
Main nav displays but when I click on the links the main nav is replaced by
the subnavigation. This is odd since I don't even have the <r:snippet
name="subnavigation" /> in my Layout (which I also pulled from the demo
site). How is it even displaying? I'm assuming it is Radius tag magic.
I've read all the documentation on GitHub. Obviously, there is some
conditional logic I'm missing. Best.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant