Skip to content

Instantly share code, notes, and snippets.

@ronnieduke
Created April 30, 2014 21:39
Show Gist options
  • Save ronnieduke/f4ccd7dac427cbaae162 to your computer and use it in GitHub Desktop.
Save ronnieduke/f4ccd7dac427cbaae162 to your computer and use it in GitHub Desktop.
This trick comes in handy if you want to use Mura's Multi-Level Nav to power the navigation for your entire site (as opposed to dspPrimaryNav() ). Helpful if you want to use Mura to create a Documentation site for example with many nested levels in the sidebar.
<!--- Add this to any page template or include --->
<!--- By setting the contentID=00000000000000000000000000000000001, Mura will allow top level pages to render in the nav. --->
<nav id="navMultilevel" class="mura-nav-standard sidebar-nav well">
#$.dspNestedNav(
contentID='00000000000000000000000000000000001',
viewDepth=4,
currDepth=1,
sortBy='orderno',
sortDirection='asc',
subNavExpression="listFindNoCase('Page,Calendar',rsSection.type) and listFind($.content('path'),rsSection.contentID) and arguments.currDepth lt arguments.viewDepth"
)#
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment