Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
{exp:channel:entries channel="static" limit="1" sort="asc"{if segment_2} require_entry="yes"{/if}}
{if no_results}{redirect="404"}{/if}
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"}
<title>{title} {if segment_2}// {exp:taxonomy:breadcrumbs titles_only="yes" reverse="yes" include_here="no" delimiter=" :: "}{/if}
<div id="container">
<div id="banner">
<h1>Static Pages in ExpressionEngine</h1>
<p>You are here: <a href="{path=}">Home</a> &rarr; {exp:taxonomy:breadcrumbs}</p>
<div id="sidebar-a">
{exp:taxonomy:nav auto_expand="yes"}
<a href="{node_url}">{node_title}</a>
<div id="content">
{if this_node_has_children == 'yes'}
{embed="static/.teasers" entry_ids="{exp:taxonomy:get_children_ids}"}
<div id="footer">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment