brianrowe
9/30/2014 - 12:32 PM

dspCustomNavWithChildren.cfm

<cfset feed = $.getBean('feed').loadBy(name='Your Feed Name')>
<cfset it = feed.getIterator()>
<cfif it.hasNext()>
	<ul class="nav nav-list">
		<li class="nav-header">Your Nav Header</li>
		<cfloop condition="it.hasNext()">
			<cfset item = it.next()>
			<li<cfif $.content('contentid') eq item.getContentID()> class="active current"</cfif>>
				<a href="#item.getURL()#">#HTMLEditFormat(item.getMenuTitle())#</a>
				<!--- This is where you can specify how deep you want to go  --->
				#$.dspNestedNav(contentID=item.getContentID(), viewDepth=2)#
			</li>
		</cfloop>
	</ul>
</cfif>