Adding Parent to Subnav list (Autonav block)
Permalink
Hi I've been reading many different posts about this but can't find a definitive solution.
I want to use the Autonav block to create a subnav that creates a list lust this:
<ul>
<li><a href="parent_url">Parent</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
</ul>
Irrespective if you are on the parent page or the child page? But ONLY if the parent is beneath the home page.
So web tree:
Home
-Subpage 1
--Subpage 1a
--Subpage 1b
--Subpage 1c
-Subpage 2
--Subpage 2a
--Subpage 2b
--Subpage 2c
So if I am on Subpage 1 or it's child Subpage 1a list is the same:
<ul>
<li>Subpage 1</li>
<li>Subpage 1a</li>
<li>Subpage 1b</li>
<li>Subpage 1c</li>
<ul>
Thanks in advance. Ben
I want to use the Autonav block to create a subnav that creates a list lust this:
<ul>
<li><a href="parent_url">Parent</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
<li><a href="child_url">Child</a></li>
</ul>
Irrespective if you are on the parent page or the child page? But ONLY if the parent is beneath the home page.
So web tree:
Home
-Subpage 1
--Subpage 1a
--Subpage 1b
--Subpage 1c
-Subpage 2
--Subpage 2a
--Subpage 2b
--Subpage 2c
So if I am on Subpage 1 or it's child Subpage 1a list is the same:
<ul>
<li>Subpage 1</li>
<li>Subpage 1a</li>
<li>Subpage 1b</li>
<li>Subpage 1c</li>
<ul>
Thanks in advance. Ben
Create one for every nav tree you want to display like this, set the autonav to display all pages and all sub pages and then filter within a modified view. Not very pretty but works well.