Page 1 of 1

[SOLVED]Display Sub categories

Posted: Thu Aug 23, 2007 4:40 am
by DaC
Hello since this is my first post here I really want the developers to know how thrilled I am with this CMS, it really is amazing how great it works and how easy it is to figure out :)

Now, on to my first problem:

I got several sub categories of articles and a big parent article folder.

What I like is for the Article page to show the entire Article folder including all the sub categories.
From my understanding of reading the documentation this would be accomplished by creating a content page and write:

{cms_module module="news" category="Articles"}


However this displays an emty page. I have no trouble displaying each of the sub categories alone such as

{cms_module module="news" category="Articles_sub1"}
{cms_module module="news" category="Articles_sub2"}
{cms_module module="news" category="Articles_sub3"}

And so on, in a separate page. Is it a bug that my category='Articles' doesnt show anything or do I need to add another option to my news module?

I have made sure that the sub articles are an under category of Articles such as "Articles | Articles_sub1"

I hope this is understandable, English is not my first language and its really late (been playing around with CMSms all day)

Thanks

David

Re: Display Sub categories

Posted: Thu Aug 23, 2007 6:13 am
by cyberman
DaC wrote: {cms_module module="news" category="Articles"}
You can use

Code: Select all

{news category="Articles"}
too ;).

If you want to show articles from subcategories with this command too you read the module help ;D
Only display items for that category. Use * after the name to show children.  Multiple categories can be used if separated with a comma. Leaving empty, will show all categories.

Re: Display Sub categories

Posted: Thu Aug 23, 2007 6:16 am
by Dr.CSS
I take it that Articles is just a parent category and it has no articles assigned to it just children categories?...

If so you will need to use this...

(optional) category="category" - Only display items for that category. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories.

cyberman beat me to it....  ;)

Re: Display Sub categories

Posted: Thu Aug 23, 2007 12:42 pm
by DaC
Thanks alot!

I actually did read the module help but I read the Danish version in which it says

"(optional) category="category" - Vis kun nyheder for denne kategori og den underkategorier. Hvis feltet er blankt vises alle kategorier."

Which translated is "Show only news from this category and its sub categories, if the field is blank all categories will be shown"
So I had no idea of with no mention of a "*", But thanks alot, works now :D

Re: Display Sub categories

Posted: Thu Aug 23, 2007 1:13 pm
by cyberman
Sometimes it's really useful to read original docu :).

Maybe you should send an information to translators for your language to add this ...