Skip to content

Instantly share code, notes, and snippets.

View iainurquhart's full-sized avatar

Iain Urquhart iainurquhart

View GitHub Profile
<ul class="breadcrumbs">
{exp:taxonomy:breadcrumbs tree_id="2" entry_id="{entry_id}"}
<li{if here} class="current"{/if}><a href="{node_url}">{node_title}</a></li>
{/exp:taxonomy:breadcrumbs}
</ul>
<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="{path=}">Top Site Label </a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
{exp:taxonomy:nav
tree_id="2"
<div class="section-container auto" data-section>
{exp:taxonomy:nav
tree_id="2"
display_root="no"
style="linear"
}
{if node_level == 1}
<section{if node_level_count == 1} class="active"{/if}>
<p class="title" data-section-title>
<a href="#panel{node_level_count}">{node_title}</a>
{exp:taxonomy:prev_node tree_id="1" entry_id="{entry_id}"}
<h3>Previous node</h3>
<p><a href="{prev_node_url}">{prev_node_label}</a></p>
{if no_prev_node}
<p>No previous node!</p>
{/if}
{/exp:taxonomy:prev_node}
{exp:taxonomy:next_node tree_id="1" entry_id="{entry_id}"}
<h3>Next node</h3>
<a href="{next_node_url}">{next_node_label}</a>
{if no_next_node}
<p>No next node!</p>
{/if}
{/exp:taxonomy:next_node}
{exp:taxonomy:set_node tree_id="1" entry_id="{entry_id}"}
if (ee()->extensions->active_hook('taxonomy_updated'))
{
ee()->extensions->call('taxonomy_updated', $this->tree_id, $update_type, $data);
}
{exp:taxonomy:entries parent_entry_id="{entry_id}" dynamic="no"}
<h2><a href="{exp:taxonomy:node_url entry_id="{tx:entry_id}"}">{tx:title}</a></h2>
<p>{tx:page_introduction}</p>
{/exp:taxonomy:entries}
{exp:channel:entries channel="some_pages" limit="1"}
{exp:taxonomy:set_node
tree_id="2"
entry_id="{entry_id}"
add_globals="yes"
}
<p>You are here:
{exp:taxonomy:breadcrumbs}
{exp:taxonomy:nav tree_id="1"}
<li> <a href="{node_url}">{node_title}</a> {children} </li>
{/exp:taxonomy:nav}