Page 1 of 1

show sub-contents?

Posted: Sun Dec 17, 2006 4:23 am
by sinkpoint
Hi, I've trying to migrate my site onto CMSMS, and ran into a little hiccup.

I'm sure the solution should be obvious, but I searched through the docs and forums up and down, and couldn't find the answer.

How do you display a list of sub-contents/child content items on the content page?
What I mean is a feature similar to the List Style or Blog Style menu item feature in Joomla, which shows a section/category's items in as a list of titles, or a list of text items.

I know that you can display the items on the menu. That's not what I want.

For example:

----- start page -------

Title

Description text...




------ end page ------


So far I've reached the conclusion that there is no such feature, and I would need to write my own code for this.
However I'm hoping that I'm wrong, since it seems to be such an essential feature.

Thanks.

Re: show sub-contents?

Posted: Sun Dec 17, 2006 10:16 am
by tsw
you can call menumanager from page content also and if you set it to show all items below current item I think you get what you want.

subpages content is trickier as it is not read from db at that point. you could write a small udt which gets the content from db when given page id as parameter.

hope this helps

Re: show sub-contents?

Posted: Sun Dec 17, 2006 3:09 pm
by Elijah Lofgren
This sounds almost like this: http://wiki.cmsmadesimple.org/index.php ... t_children

But that was using descriptions not content.

You may also be interested in my PageBlocks module.

Gotta run,

Elijah

Re: show sub-contents?

Posted: Sun Dec 17, 2006 7:11 pm
by sinkpoint
Thanks Elijah, I think the list_children example is sufficient for my purpose.

May I propose that this feature be considered for future releases? It's a very essential feature of a CMS.
At the very least, if there can be some easy way to access menu item content the same way the description can be accessed, then this can be easily implemented with the existing method.

Thanks again for the prompt response.

Re: show sub-contents?

Posted: Sun Dec 17, 2006 9:12 pm
by Elijah Lofgren
sinkpoint wrote: Thanks Elijah, I think the list_children example is sufficient for my purpose.
Ok, cool.
sinkpoint wrote: May I propose that this feature be considered for future releases? It's a very essential feature of a CMS.
At the very least, if there can be some easy way to access menu item content the same way the description can be accessed, then this can be easily implemented with the existing method.
I'd appreciate it if you would Submit a new feature request here: http://dev.cmsmadesimple.org/tracker/?a ... unc=browse
CMSMS 1.1 (or 2.0) is currently under development and it would be cool if this feature made it in.

sinkpoint wrote: Thanks again for the prompt response.
You're welcome