News for multiple categories

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
roadrunner
New Member
New Member
Posts: 7
Joined: Mon Sep 15, 2008 7:50 am

News for multiple categories

Post 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
Last edited by roadrunner on Tue Sep 16, 2008 11:37 am, edited 1 time in total.
alby

Re: News for multiple categories

Post 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
roadrunner
New Member
New Member
Posts: 7
Joined: Mon Sep 15, 2008 7:50 am

Re: News for multiple categories

Post 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 :)
alby

Re: News for multiple categories

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”