Created
February 21, 2012 04:18
-
-
Save iainurquhart/1873631 to your computer and use it in GitHub Desktop.
Next/Prev Node tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries limit="1"} | |
<!-- set the current node --> | |
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"} | |
<!-- Le Nav --> | |
<nav> | |
{exp:taxonomy:nav auto_expand="yes"} | |
<a href="{node_url}">{node_title}</a> | |
{/exp:taxonomy:nav} | |
</nav> | |
<!-- Le Content --> | |
<article> | |
<p>You are here: {exp:taxonomy:breadcrumbs}</p> | |
<h1>{title}</h1> | |
{if kicker}<div class="kicker">{kicker}</div>{/if} | |
<!-- Le Children --> | |
{if this_node_has_children == 'yes'} | |
<h3>In this section</h3> | |
{embed="static/.teasers" entry_ids="{exp:taxonomy:get_children_ids}"} | |
{/if} | |
<!-- Le Pagination Shizzle --> | |
{exp:taxonomy:prev_node} | |
<a href="{prev_node_url}" class="pagination"> ← {prev_node_title}</a> | |
{/exp:taxonomy:prev_node} | |
{exp:taxonomy:next_node} | |
<a href="{next_node_url}" class="pagination">{next_node_title} →</a> | |
{/exp:taxonomy:next_node} | |
</article> | |
{/exp:channel:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment