Page 1 of 1

A page contains all sub-pages

Posted: Sat Mar 17, 2007 6:55 am
by CNBorn
Hi.

I have a site, it's navigation looks like:

1 - Home
2 - Decoration
2.1 - Decoration 1
2.2 - Decoration 2
2.3 - Decoration 3

I want to put a lot of articles in Decoration, so there will be a lot of pages under the number 2.
But this will make the navigation menu too long to show all of them.

I want to let the user just see the '2 - Decoration' page , in which page people will see all the sub-pages of it in {content} field.

I can just turn off the "Display in Menu" options in all 2.X pages, but I use {menu start_menu='Decoration' number_of_levels='2' }  to show the subpages. Therefore these subpages won't be shown...

How can I make this happen? Thanks in Advance....

Re: A page contains all sub-pages

Posted: Sat Mar 17, 2007 8:23 am
by Dee
Try {menu start_element=2} in the content.
(see the MenuManager help, "Extensions » Modules")

Regards,
D

Re: A page contains all sub-pages

Posted: Sat Mar 17, 2007 11:15 am
by CNBorn
Thanks Dee.

Tough I can't catch on how start_element works ( is it different from start_page?), I found show_all="1" , this actually gave me kinda help.

I Just turn off the 'Display in Menu' Options of these pages. and Show them forcedly in the content page.

Re: A page contains all sub-pages

Posted: Sat Mar 17, 2007 6:10 pm
by Dee
start_page takes a page alias, start_element takes a hierarchy position.

From the MenuManager help:
# (optional) start_page="home" - Starts the menu displaying at the given start_page and showing that element and it's children only. Takes a page alias.
# (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).
Turning off 'Display in Menu' and using show_all=true should work fine.
I think another option to hide the subpages from the main menu is to create a parent of type "Section Header" or simply hide the parent page from the menu.

Regards,
D