Entry: Page or dynamic
{preload_replace:this_entry_channel="news"}
{exp:channel:entries limit="1" require_entry="yes" channel="{this_page_channel}"}
{if no_results}{redirect="404"}{/if}
{embed="_partials/.header" entry_id="{entry_id}"}
<h1>{title}</h1> {page_content}
{embed="_partials/.footer"}
{/exp:channel:entries}
Section Index: Page + index
{preload_replace:this_page_channel="pages"}
{preload_replace:this_index_channel="news"}
{exp:channel:entries limit="1" require_entry="yes" channel="{this_page_channel}"}
{if no_results}{redirect="404"}{/if}
{embed="_partials/.header" entry_id="{entry_id}"}
<h1>{title}</h1> {page_content}
{/exp:channel:entries}
{exp:channel:entries dynamic="off" channel="{this_index_channel}"}
{if no_results}<p>No news entries.</p>{/if}
<h2>{title}</h2> {news_content}
{/exp:channel:entries}
{embed="_partials/.footer"}
Category Archive
{preload_replace:this_index_channel="news"}
{exp:channel:category_heading channel="{this_index_channel}"}
{embed="_partials/.header"
description="{category_description}"
title="{category_name}"
title_suffix="Category Archive | News"
}
<h1>{category_name}</h1>
{if category_description}{category_description}{/if}
{/exp:channel:category_heading}
{exp:channel:entries channel="{this_index_channel}"}
{if no_results}<p>No news entries.</p>{/if}
<h2>{title}</h2>{news_content}
{/exp:channel:entries}
{embed="_partials/.footer"}