NextPage/PreviousPage Containers

These containers are replaced with link to the next/previous pages on the archive, category, and entry pages.

The <NextPage> container syntax is:


<NextPage>
	<IfPageExists>
		<$PageLink$><$PageName$>
	</IfPageExists>
	<IfNoPageExists></IfNoPageExists>
</NextPage>

The <PreviousPage> container syntax is:


<PreviousPage>
	<IfPageExists>
		<$PageLink$><$PageName$>
	</IfPageExists>
	<IfNoPageExists></IfNoPageExists>
</PreviousPage>


Example: Next and previous links on the archive pages


<PreviousPage>
	<IfPageExists>
		<a href="<$PageLink$>">&laquo; <$PageName$></a> |
	</IfPageExists>
	<IfNoPageExists>
		No More Archives
	</IfNoPageExists>
</PreviousPage>
<a href="<$FrontPageLink$>">Main</a>
<NextPage>

	<IfPageExists>
		| <a href="<$PageLink$>"><$PageName$> &raquo;</a>
	</IfPageExists>
	<IfNoPageExists>
		No More Archives
	</IfNoPageExists>
</NextPage>

Output:

« December 2004 | Main | February 2005 »