Created
December 22, 2014 18:40
-
-
Save ronnieduke/c2231cda3f56e660549f to your computer and use it in GitHub Desktop.
Get Sub Nav from a Mura Page by Content ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset bean=$.getBean('content').loadBy(contentID="whatever content ID")> | |
<cfset subNav=bean.getKidsIterator()> | |
<cfif subNav.hasNext()> | |
<ul> | |
<cfloop condition="subNav.hasNext()"> | |
<cfset item=subNav.next()> | |
<li><a href="#item.getURL()#">#item.getMenuTitle()#</a></li> | |
</cfloop> | |
</ul> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also worth exploring here may be: