Page 1 of 1

How to limit number of news on frontpage?

Posted: Thu Sep 21, 2006 4:45 pm
by wit_
Hey guys!

I tried to search the forum, but could not find any answers that would've solved my problem.

So, my problem is that I have News 2.1 installed on my CMSMS 1.0.1, and even if I have (tried to) limited the amount of news headlines on my frontpage, I haven't succeeded in it.

In my template, the call for the news headlines is

Code: Select all

<!-- Start News -->
      <div id="news">
         <h2>Uutiset</h2>
          {news limit=2 detailpage='uutiset'}
      </div>
      <!-- End News -->
But yet I see 4 headlines on my frontpage.
I've understood that the "news limit=2" option should limit the headlines to 2, am I right?

So, if anyone could help me with this mysterious problem, I would be extremely grateful! ;D

Re: How to limit number of news on frontpage?

Posted: Thu Sep 21, 2006 4:52 pm
by tsw
congrats, you just found a bug. well not in news but in default templates :D

correct param is "number" which is clearly documented in news module help page

[me=tsw]goes fixing default templates for next release, sorry about that[/me]

Re: How to limit number of news on frontpage?

Posted: Thu Sep 21, 2006 5:06 pm
by wit_
Edit - If you read this before the edit, ignore it...


Yeah, that works! :D
Changed it to news number="3" detailpage='uutiset' and now I only get 3 headlines.

What did we learn, always RTFM and use it right (I was dumb enough to try the number param the wrong way).

But I did find a bug though!  ::)