Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created July 20, 2013 01:22
Show Gist options
  • Save iainurquhart/6043429 to your computer and use it in GitHub Desktop.
Save iainurquhart/6043429 to your computer and use it in GitHub Desktop.
{exp:taxonomy:nav
auto_expand="yes"
tree_id="1"
style="linear"
}
{if node_level_count == 1}<ul>{/if}
<li class="node_{node_id}{if node_active} active{/if}{if node_active_parent} active_parent{/if}">
<a href="{node_url}">{node_title}</a>{children}</li>
{if node_level_count == node_level_total_count}</ul>{/if}
{/exp:taxonomy:nav}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment