News 2.3 pagination problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

News 2.3 pagination problem

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News 2.3 pagination problem

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

Re: News 2.3 pagination problem

Post by qzy »

Thanks, Calguy, that helped alot, now it's running fine.


Balint
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: News 2.3 pagination problem

Post 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!
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

Re: News 2.3 pagination problem

Post 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
Post Reply

Return to “CMSMS Core”