I have built design parse files 1000 times, but it is late and I am not thinking how to figure this one out.
In my subnav menu, I would like to show the parent top level page as the first item, and then show all the children. So far, I am only getting the children to show, using:
<MySource_AREA id_name="subnav_menu" design_area="menu_normal"><MySource_SET name=“level” value=“1”/>
<MySource_SET name=“show_subs” value=“always”/>
<MySource_SET name=“settings.class.normal” value="" />
<MySource_SET name=“settings.class.hierarchy” value="" />
<MySource_SET name=“settings.class.current” value=“active” /><div class=“navigation-parent”>
<ul>
<MySource_ASSET>
<li class="<MySource_PRINT var=‘settings.class’ />">
<MySource_PRINT var=“asset_short_name_linked” />
<MySource_SUB design_area=“menu_normal”>
<MySource_SET name=“show_subs” value=“on_current”/>
<MySource_SET name=“settings.class.normal” value="" />
<MySource_SET name=“settings.class.hierarchy” value="" />
<MySource_SET name=“settings.class.current” value=“active” />
<ul class=“sub-menu”>
<MySource_ASSET>
<li class="<MySource_PRINT var=‘settings.class’ />">
<MySource_PRINT var=“asset_short_name_linked” />
<MySource_SUB design_area=“menu_normal”>
<MySource_SET name=“settings.class.normal” value="" />
<MySource_SET name=“settings.class.hierarchy” value="" />
<MySource_SET name=“settings.class.current” value=“active” />
<ul class=“sub-menu”>
<MySource_ASSET>
<li class="<MySource_PRINT var=‘settings.class’ />">
<MySource_PRINT var=“asset_short_name_linked” />
</li>
</MySource_ASSET>
</ul>
</MySource_SUB>
</li>
</MySource_ASSET>
</ul>
</MySource_SUB>
</li>
</MySource_ASSET>
</ul>
</div>
</MySource_AREA>
So, say this is my hierarchy:
- Top Page 1
- -- Sub Page 1
- -- Sub Page 2
- Top Page 2
- -- Sub Page 1
- -- Sub Page 2
- Top Page 3
So, when accessing one of the Sub Pages, I would like it to show Top Page as well as Sub Pages. Does anyone have ideas on how I can show the parent page as the first item?