Knowledgebase: Mura CMS
Displaying Custom Navigation in Mura CMS
Posted by Joe Rebis (Import) on 05 October 2009 06:05 PM

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.

(359 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Copyright © 2015 EPhost, Inc. All rights reserved.