News Module Pagination doesn't work with multiple categories
Posted: Fri Mar 22, 2013 10:46 am
Our CMS Made Simple site has grown to the point where I needed to enable pagination on the News items (yay!).
On our blog page (http://www.stormforce.biz/information-p ... blogs.html) this works fine, but on our news page it doesn't (http://www.stormforce.biz/information-p ... /news.html).
I have traced this fault down to the fact that the news page contains all of our news items that are not in the category 'Blog', whereas our Blog page just contains those that are in the category 'Blog'. This is called on the news page by this line:
The problem seems to be the commas separating each news item. It generates a pagination link that looks like this:
The code that does this is:
How do I move this forward?
Thanks!
Jimbo
On our blog page (http://www.stormforce.biz/information-p ... blogs.html) this works fine, but on our news page it doesn't (http://www.stormforce.biz/information-p ... /news.html).
I have traced this fault down to the fact that the news page contains all of our news items that are not in the category 'Blog', whereas our Blog page just contains those that are in the category 'Blog'. This is called on the news page by this line:
Code: Select all
{news summarytemplate='SF_BigNews_2012' detailtemplate='SF_BigNews_2011' category='General,Sailing,Powerboating,Racing,Motor Cruising,Shorebased' pagelimit='12'}
If I manually delete all the other categories, this link works fine (i.e. to page two of a single category). If I replace the %2C's with commas, it works fine. So, I need to know how to make the pagination code generate links with the commas in as commas, not %20C.
The code that does this is:
Code: Select all
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
Thanks!
Jimbo