Page 1 of 1

News for multiple categories

Posted: Tue Sep 16, 2008 11:00 am
by roadrunner
Hello everyone,

I have my cmsms running fine and quite happy with it so farĀ  :) ! I'm configuring things here and there and have a small thing to solve : I want to have news in some pages, so i inserted a line like this

{news number='5' dateformat="%d %b %Y" category='1_1'}

but what i want is this :

Category parent : 1
Sub category : 1_1
Sub category : 1_2

Page 1 with {news number='5' dateformat="%d %b %Y" category='1_1'}
Page 2 with {news number='5' dateformat="%d %b %Y" category='1_2'}

I want to have only the 1_1 news when the article is written with category 1_1 on the page 1
I want to have only the 1_2 news when the article is written with category 1_2 on the page 2
but i also want to have the news on both page 1 and page 2 when the parent is selected (category 1)

I tried to say something like

{news number='5' dateformat="%d %b %Y" category='1_1' category="1"} but it naturally does not work (naturally because i don't know the syntax, and therefore cannot be successfull at the first try ;) )

I fear that inserting {news number='5' dateformat="%d %b %Y" category='1'} under the {news number='5' dateformat="%d %b %Y" category='1_1'} line may split news into 2 different "threads" and i want news to be "altogether"

If my problem is clear enough, is there a way to do what i want ?

Regards

Re: News for multiple categories

Posted: Tue Sep 16, 2008 11:16 am
by alby
roadrunner wrote: I tried to say something like

{news number='5' dateformat="%d %b %Y" category='1_1' category="1"} but it naturally does not work (naturally because i don't know the syntax, and therefore cannot be successfull at the first try ;) )
Have you look News help?
(optional) category="category" - Used in the summary view to display only items for the specified categories. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories. This parameter also works for the frontend submit action, however only a single category name is supported.
Alby

Re: News for multiple categories

Posted: Tue Sep 16, 2008 11:35 am
by roadrunner
alby wrote: [Have you look News help?
Hello, I haven't looked help as you can imagine, not because of lazyness, but because i just haven't found where to look for it... I haven't found it in the online Documentation (or I may not have looked well enough..) can you please give me the right link ?

Thanks a lot for your quick answer :)

Re: News for multiple categories

Posted: Tue Sep 16, 2008 12:26 pm
by alby
roadrunner wrote: Hello, I haven't looked help as you can imagine, not because of lazyness, but because i just haven't found where to look for it... I haven't found it in the online Documentation (or I may not have looked well enough..) can you please give me the right link ?
Any module has a help page (Extensions > Modules > click on help of module)

Alby