A page contains all sub-pages

General project discussion. NOT for help questions.
Post Reply
CNBorn
Forum Members
Forum Members
Posts: 21
Joined: Tue Feb 27, 2007 7:39 am

A page contains all sub-pages

Post 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....
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: A page contains all sub-pages

Post by Dee »

Try {menu start_element=2} in the content.
(see the MenuManager help, "Extensions » Modules")

Regards,
D
CNBorn
Forum Members
Forum Members
Posts: 21
Joined: Tue Feb 27, 2007 7:39 am

Re: A page contains all sub-pages

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: A page contains all sub-pages

Post 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
Post Reply

Return to “General Discussion”