Pagination on news page [solved]
Posted: Fri Aug 17, 2007 8:41 am
Hi everyone.
Firstly thanks for such an aesome CMS.
I am running CMS Made Simple 1.1 "Samoa". My problem is I am trying to get 'pagination' working on a news page. I have followed the guide here:
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/News/User_Defined_Tags
Everything as far as i can see is correct. My page is a content page, my global tag is named correctly, my page has the correct content. The news displays, but I dont get the added features appearing. I get this error message at the top of the content area
What have I done wrong?
Here is my news page:
Here is my news template:
What am I doing wrong?
Thanks in advance everyone
Firstly thanks for such an aesome CMS.
I am running CMS Made Simple 1.1 "Samoa". My problem is I am trying to get 'pagination' working on a news page. I have followed the guide here:
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/News/User_Defined_Tags
Everything as far as i can see is correct. My page is a content page, my global tag is named correctly, my page has the correct content. The news displays, but I dont get the added features appearing. I get this error message at the top of the content area
Code: Select all
string(126) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'newsindex' (Smarty_Compiler.class.php, line 590)"
Here is my news page:
Code: Select all
{newsindex number='5' start='0' category='General' count_expired='true' delimiter='|' older='Older Stories' newer='Newer Stories'}
{news}
{$news_newer_link} {$news_crumbs} {$news_older_link}Code: Select all
<!-- Start News Display Template -->
<h1>BB Music House - The Latest</h1>
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
<h1 id="NewsPostDetailTitle">{$entry->title}</h1>
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->formatpostdate}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
<p>{$entry->morelink}</P>
</div>
<br />
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
</div>
{/foreach}
<!-- End News Display Template -->Thanks in advance everyone