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.
[Solved] Output only certain number of news
[Solved] Output only certain number of news
Last edited by dkost on Wed Oct 13, 2010 3:41 pm, edited 1 time in total.
-
- New Member
- Posts: 7
- Joined: Sun Oct 10, 2010 2:20 pm
Re: Output only certain number of news
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
{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}
Hope this helps.
David
Re: Output only certain number of news
Here are some links you might find useful.
http://calguy1000.com/Blogs/12/60/basic ... kills.html
http://wiki.cmsmadesimple.org/index.php ... ntent/News
http://calguy1000.com/Blogs/12/60/basic ... kills.html
http://wiki.cmsmadesimple.org/index.php ... ntent/News
Re: Output only certain number of news
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.

Re: Output only certain number of news
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...
-
- New Member
- Posts: 7
- Joined: Sun Oct 10, 2010 2:20 pm
Re: Output only certain number of news
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.
Check you have done it for detailed and summary templates.
Re: Output only certain number of news
The detail template doesn't have that as detail is a one show article at a time situation...
Re: Output only certain number of news
Thanks David James Arnold and Dr CSS. All work fine.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.