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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
wlad93

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

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

album?
wlad93

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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 \/....
wlad93

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

Post by wlad93 »

Than you mark, i'm gonna try and tell you if it meets my needs.
Locked

Return to “CMSMS Core”