News on Homepage, it gives me page numbers!

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
ricardosalta
Forum Members
Forum Members
Posts: 13
Joined: Thu Nov 15, 2007 6:46 pm

News on Homepage, it gives me page numbers!

Post by ricardosalta »

I have the homepage news tag inserted to list the last three news items.

The problem is when there are four or more -- page number selection links show up.

I don't want this. I want it to plain simply just display the latest three.

I tried to look at the documentation on the news module, without much luck.

Thanks for any help :)

-R
mechatech
Forum Members
Forum Members
Posts: 51
Joined: Thu Oct 25, 2007 5:49 pm

Re: News on Homepage, it gives me page numbers!

Post by mechatech »

To remove the pagination thing you will have to go to the news module and then the summary template, edit that template, you will need to remove the lines that look like this

{/foreach}
{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
{/if}

may not be those lines exactly not sure where to stop deleting, but that should get you started
Post Reply

Return to “CMSMS Core”