Skip to content

Instantly share code, notes, and snippets.

@muracms
Created December 16, 2013 19:59
Show Gist options
  • Select an option

  • Save muracms/7993317 to your computer and use it in GitHub Desktop.

Select an option

Save muracms/7993317 to your computer and use it in GitHub Desktop.
<ul class="nav nav-list">
<li class="nav-header">Custom Nav</li>
<li><a href="">Title 1</a></li>
<li><a href="">Title 2</a></li>
...
<ul>
{SiteID}/includes/display_objects/custom/custom-nav.cfm
<cfset feed=$.getBean('feed').loadBy(name='Slideshow')>
<cfset iterator=feed.getIterator()>
<cfif iterator.hasNext()>
<cfset feed=$.getBean('feed').loadBy(name='Slideshow')>
<cfset iterator=feed.getIterator()>
<cfif iterator.hasNext()>
<cfoutput>
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Custom Nav</li>
<cfloop condition="iterator.hasNext()">
<cfset item=iterator.next()>
<li>
<a href="#item.getURL()#">
#HTMLEditFormat(item.getMenuTitle())#
</a>
</li>
</cfloop>
</ul>
</div>
</cfoutput>
</cfif>
<nav>[mura]$.dspInclude('display_objects/custom/custom-nav.cfm')[/mura]</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment