Skip to content

Instantly share code, notes, and snippets.

@jackmcdade
Created March 30, 2012 15:40
Show Gist options
  • Save jackmcdade/2252347 to your computer and use it in GitHub Desktop.
Save jackmcdade/2252347 to your computer and use it in GitHub Desktop.
Structure flexible markup tag
<ul id="nav">
{exp:structure:entries}
<li class="top-level" id="{page_slug}"><a href="{page_url}">{title}</a>
{if children}
<ul class="dropdown">
{children limit_depth="2"}
<li class="level-{depth}"><a href="{page_url}">{title}</a>
{/children}
</ul>
{/if}
</li>
{/exp:structure:entries}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment