I’m using Mark’s plugin (http://docs.markhuot.com/) to create a navigation menu of static pages and it works beautifully. I added a bit of PHP to the template to dynamically figure out the depth of the menu I wanted to show, so when you drill down through the pages the next level of navigation appears.
I’m also wanting this same functionality when navigating through categories as well. How do I achieve this? I’ve tied Dynocat and the subcategories plugins but they didn’t seem to do this (unless I’m doing something wrong).
<?php
global $IN;
$total_segments = count($IN->SEGS);
?>
<ul>
{exp:weblog:entries weblog="main_navigation" orderby="nav_order" sort="desc" dynamic="off" status="open" disable="pagination|member_data"}
<li><a href="/{url_title}/">{link_text}</a>
{if has_children == "true" AND segment_1 == url_title }
{exp:pages_nested_menu root="{url_title}" include_ul="yes" include_root="no" depth="<?php echo $total_segments ?>"}
<a href="http://{pnm_page_url}" title="{pnm_title}">{pnm_title}</a>
{/exp:pages_nested_menu}
{/if}
</li>
{/exp:weblog:entries}
</ul>