Page 1 of 1

How to, on a Content page, add dynamic links to child pages ?

Posted: Sat Jul 28, 2007 5:36 pm
by wlad93
Hello,

I am using CMSMS 1.1 with a few modules. All is working fine.
I can't find the solution for one of my needs :
In a Content page "Master", I would like to dynamically display, for each child page of page "Master" :
- the title of the child page with a link to the child page
- a comment
- a thumbnail
Until now, I make all links by hand but it's long to do, and it is not dynamic. When I add a child page, I have also to modify the Parent Content page.

If you want to have a look at what I mean :
http://kaltex.free.fr/index.php?page=galerie
The page Galerie has no real content, it is just a Parent page for Peintures/Sculptures/Gravures, Films and Ecrits.
I would like to make the Galerie Content page dynamic, with the links to child pages.

Is there already a module or a tag to do that ?

Thank you.

Re: How to, on a Content page, add dynamic links to child pages ?

Posted: Sat Jul 28, 2007 5:45 pm
by tsw
album?

Re: How to, on a Content page, add dynamic links to child pages ?

Posted: Sat Jul 28, 2007 5:56 pm
by wlad93
Thank you for your answer.
I had thought about it, but it only works with Album pages. And it is limited to 2 levels : the Album page and the albums.
I need to have links to child Content pages, on a Content page.

In my example (http://kaltex.free.fr), the Galerie page has three child content pages. The page "Peintures / Sculptures / Gravures" has 4 child pages, which are Album pages.

Another solution ? Thank you.

Re: How to, on a Content page, add dynamic links to child pages ?

Posted: Sun Jul 29, 2007 3:59 am
by Dr.CSS
You can use the menu manager to make another menu with {$node->id} for a link class, which you can use to style each link, and call it in the page content with the tag {menu start start_element="1.2" show_root_siblings="1"}

# (optional) start_element="1.2" - Starts the menu displaying at the given start_element and showing that element and it's children only. Takes a hierarchy position (e.g. 5.1.2).
# (optional) start_level="2" - This option will have the menu only display items starting a the given level. An easy example would be if you had one menu on the page with number_of_levels='1'. Then as a second menu, you have start_level='2'. Now, your second menu will show items based on what is selected in the first menu.
# (optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.


read the blurb below \/....

Re: How to, on a Content page, add dynamic links to child pages ?

Posted: Mon Jul 30, 2007 8:20 am
by wlad93
Than you mark, i'm gonna try and tell you if it meets my needs.