<div class="pager">
Go to page: {pager style="links"}
</div>
There are different style options.
See class/template/smarty/plugins/function.pager.php
<div class="pager">
Go to page: {pager style="links"}
</div>
{if $OnMainPage}
{if $OnMainPage pager style="prevonly"}
{/if}
{else}
{pager style="links"}
{/if}
{if $OnMainPage}
{pager style="prevonly"}
{else}
{pager style="links"}
{/if}
{if $OnMainPage}
{pager style="prevonly"}
{else}
{pager style="links"}
{/if}
{if $OnMainPage}
<a href="http://www.exampleurl.com/examplepage">Example Link</a>
{else}
{pager style="links"}
{/if}That worked! Thanks!Rechosen wrote:I think you mean:
- Code: Select all
{if $OnMainPage}
<a href="http://www.exampleurl.com/examplepage">Example Link</a>
{else}
{pager style="links"}
{/if}
Smarty allows normal HTML between {if}{/if}.
{if $category}
{if $category->getName()=="Podcast"}
{include file="$blogtemplate/podcast.template"}
{/if}
{if $category->getName()=="News"}
{include file="$blogtemplate/news.template"}
{/if}
{else}
{include file="$blogtemplate/front.template"}
{/if}Doesn't "post.template" produce the single article? I'm a little lost in the wiki. Another nudge?jondaley wrote:It is because there might be multiple categories - I think you need to check a different variable. The wiki has all of the available variables for each template file.
Oops! No it doesn't ... postandcomments.template does.G. Noel Gross wrote:Doesn't "post.template" produce the single article?