Page 1 of 1

Howto display news on a page using news module?

Posted: Sun May 21, 2006 8:47 pm
by magicpio
Hi!

really dumb question:
How do I display news on a page using the news module?
I´m missing something.

I´ve activated the news module in CMSMS 0.13, created 3 categories, added one
news entry to each category, made a new page "News" containing the following:

Section "General" {cms_module module="news" start="" number="5" category="General" makerssbutton="true"}
Section "test1" {cms_module module="news" start="" number="5" category="test1" makerssbutton="true"}
Section "test2" {cms_module module="news" start="" number="5" category="test2" makerssbutton="true"}

I can feed my news into Thunderbird, but it won´t show on my own page ???

I guess I have to use the templates that come with the news module, but how?

Thanks for help.
Pio

Re: Howto display news on a page using news module?

Posted: Sun May 21, 2006 9:30 pm
by petert
magicpio wrote: Section "General" {cms_module module="news" start="" number="5" category="General" makerssbutton="true"}
Section "test1" {cms_module module="news" start="" number="5" category="test1" makerssbutton="true"}
Section "test2" {cms_module module="news" start="" number="5" category="test2" makerssbutton="true"}

I can feed my news into Thunderbird, but it won´t show on my own page ???
you only made three rss links
I guess I have to use the templates that come with the news module, but how?
In order for the news to show up you will have to tell cmsms to display it.

Code: Select all

{cms_module module="news" start="" number="5" category="test2" }
(note the absence of 'makerssbutton="true"')

hth

Re: Howto display news on a page using news module?

Posted: Mon May 22, 2006 6:09 am
by magicpio
Aaaaaaarrrrrgggghhhhhhhh ........................
Thanks!

Update: No, still doesn´t work.
Now I have:

Section "General" {cms_module module="news" start="" number="5" category="General" makerssbutton="true"}
{cms_module module="news" start="" number="5" category="General"}

Section "General" {cms_module module="news" start="" number="5" category="test1" makerssbutton="true"}
{cms_module module="news" start="" number="5" category="test1"}

Update 2
Ok, the reason why no news are displayed, is parameter start.
If you pass an empty string, like I did before: start="" , nothing will be displayed.
If you say start= without quotes, you´ll get a smarty error.
To start with the first entry, you should either completely omit parameter start, or
set start=0.

Re: Howto display news on a page using news module?

Posted: Tue May 23, 2006 12:31 pm
by fredt
Hi,

See my recent post about News + RSS + Categories bug. Perhaps my solution can help you...