Displaying Custom Navigation in Mura CMS Print

  • 0

Display custom navigation in Mura CMS:

 

If you would like to display navigation on a page, or in a component, and have it begin at a certain place, then you can try this technique. The code below displays child page links for a given parent ID. Thus all sub-pages for that parent page will show like typical standard navigation. This is useful if you would like to create dynamic navigation and display it on page in an entirely different section/page of the website. e.g. If you had a top-level General Information page with several pages of content under it (How to Order or Shipping Terms) you could display those links in the sidebar of your normal products page.

 

[mura]dspNestedNav(contentID='[PARENT-CONTENT-ID]',viewDepth=4,openPortals=false,class='navSecondary',displayHome='never')[/mura]

 

Replace: PARENT-CONTENT-ID with the Content ID of the parent object which can be found on the Advanced tab.

 

Note: If the Parent ID page has no pages under it then nothing will display.


Was this answer helpful?

« Back