[Solved] Output only certain number of news

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
dkost
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 10, 2010 1:37 pm

[Solved] Output only certain number of news

Post by dkost »

Hello, I'm a novice with CMS.

I want to make a output of onle certain number of news ot the main page without any pages with more news.
I put {news number="2"  sortasc="false"}, but I in the top of the form I have "Page 1 of 2  > >>". How to avoid this? I need only one page with 2 last news without any page of's.
Last edited by dkost on Wed Oct 13, 2010 3:41 pm, edited 1 time in total.
David James Arnold
New Member
New Member
Posts: 7
Joined: Sun Oct 10, 2010 2:20 pm

Re: Output only certain number of news

Post by David James Arnold »

I think, although I am a novice too, you goto the news template and delete the following section.

{if $pagecount > 1}
 
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}

Hope this helps.

David
dkost
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 10, 2010 1:37 pm

Re: Output only certain number of news

Post by dkost »

David James Arnold wrote: I think, although I am a novice too, you goto the news template and delete the following section.

{if $pagecount > 1}
 
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}

Hope this helps.

David

Unfortunately not.  :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Output only certain number of news

Post by Dr.CSS »

If you have a news summary template w/o that code in it and the 'pages of' stuff still shows up you are not doing something right, check that the summary template doesn't have that code and make sure if it's not marked as default that the news tag calls it...
David James Arnold
New Member
New Member
Posts: 7
Joined: Sun Oct 10, 2010 2:20 pm

Re: Output only certain number of news

Post by David James Arnold »

Agree with Dr.CSS, I did it on my template and it did exactly what you are asking.

Check you have done it for detailed and summary templates.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Output only certain number of news

Post by Dr.CSS »

The detail template doesn't have that as detail is a one show article at a time situation...
dkost
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 10, 2010 1:37 pm

Re: Output only certain number of news

Post by dkost »

David James Arnold wrote: Agree with Dr.CSS, I did it on my template and it did exactly what you are asking.

Check you have done it for detailed and summary templates.
Thanks David James Arnold and Dr CSS. All work fine.
Post Reply

Return to “Modules/Add-Ons”