Page 1 of 1

News 2.3 pagination problem

Posted: Thu Jul 19, 2007 8:15 am
by qzy
Hi there,


News 2.3 help states that adding the 'pagelimit="n"' parameter to a news module insertion will result in a pagination page of n news items. Does this refer to the presentation side? As for me it works as the 'number' parameter: it shows at most the given n number of articles but no 'next' and 'prev' links appear (although I have far more article items than n). What am I doing wrong?



Thanks in advance,
Balint

Re: News 2.3 pagination problem

Posted: Thu Jul 19, 2007 2:39 pm
by calguy1000
Try creating a new summary template, and then marking it as default.  the new summary template should have the smarty tags in it to provide the pagination links.

Re: News 2.3 pagination problem

Posted: Sat Jul 21, 2007 3:25 pm
by qzy
Thanks, Calguy, that helped alot, now it's running fine.


Balint

Re: News 2.3 pagination problem

Posted: Sun Sep 23, 2007 10:06 pm
by carasmo
Scratching head...

I'm not following this thread.

What would I put in my summary template to make it have back and next links between articles in the same category?

Thanks!

Re: News 2.3 pagination problem

Posted: Mon Sep 24, 2007 6:12 am
by qzy
Hi,

go to Content -> News, select the Summary template tab. There's a list of summary templates, choose one which has something like this at the beggining:

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}

Balint