Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created November 25, 2011 03:44
Show Gist options
  • Save iainurquhart/1392770 to your computer and use it in GitHub Desktop.
Save iainurquhart/1392770 to your computer and use it in GitHub Desktop.
typical page template
{exp:channel:entries
channel="pages_about"
limit="1"
status="open"
disable="{global:param_disable_default}"
require_entry="yes"} {if no_results}{redirect="404"}{/if}
{gv_html_open}
<title>{if title_override}{title_override}{if:else}{title}{/if}</title>
<meta name="description" content="{if meta_description}{meta_description}{if:else} {gv_global_meta_description}{/if}" />
<meta name="keywords" content="{if meta_keywords}{keywords}{if:else}{gv_global_meta_keywords}{/if}" />
{snp_head_links}
</head>
{snp_body_open}
<div class="container_24" id="top">
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"}
{snp_header}
<div id="crumbs">
<p>You are here: {exp:taxonomy:breadcrumbs}</p>
</div>
<div id="main_content">
<section class="grid_6" id="subnav">
<nav>
{exp:taxonomy:nav auto_expand="yes" active_branch_start_level="1"}
<a href="{node_url}">{node_title}</a>
{/exp:taxonomy:nav}
</nav>
</section>
<section class="grid_13" id="content">
<h1 id="page_title">{title}</h1>
<div class="kicker">
{exp:nsm_replace:haystack}
{snp_replace_loop}
{page_introduction}
{/exp:nsm_replace:haystack}
</div>
{exp:nsm_replace:haystack}
{main_content}
{/exp:nsm_replace:haystack}
{if display_section}
<h3 class="section_label">{display_section}</h3>
{embed="inc/.fetch_child_ids"
entry_ids="{exp:taxonomy:get_children_ids}"
}
{/if}
</section>
</div> <!-- main-content -->
{gv_btt}
{snp_footer}
</div>
{/exp:channel:entries}
{snp_page_close}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment