Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created March 5, 2012 03:38
Show Gist options
  • Save iainurquhart/1976375 to your computer and use it in GitHub Desktop.
Save iainurquhart/1976375 to your computer and use it in GitHub Desktop.
{exp:channel:entries limit="1" disable="member_data|pagination|categories"}
<!-- set the node -->
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"}
<!-- top nav -->
<ul id="top_nav">
{exp:taxonomy:nav style="linear" depth="1"}
<li><a href="{node_url}"{if node_active || node_active_parent && node_level} class="active"{/if}>{node_title}</a></li>
{/exp:taxonomy:nav}
</ul>
<!-- left nav -->
{exp:taxonomy:nav auto_expand="yes" active_branch_start_level="1"}
<a href="{node_url}">{node_title}</a>
{/exp:taxonomy:nav}
<!-- the crumbs -->
<p>You are here: {exp:taxonomy:breadcrumbs}</p>
<!-- content area etc -->
<h1>{title}</h1>
{if kicker}
<div class="kicker">{kicker}</div>
{/if}
{main_content}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment