Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created February 21, 2012 04:18
Show Gist options
  • Save iainurquhart/1873631 to your computer and use it in GitHub Desktop.
Save iainurquhart/1873631 to your computer and use it in GitHub Desktop.
Next/Prev Node tags
{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"> &larr; {prev_node_title}</a> &nbsp; &nbsp;
{/exp:taxonomy:prev_node}
{exp:taxonomy:next_node}
<a href="{next_node_url}" class="pagination">{next_node_title} &rarr;</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