Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Display Children of a hidden Page


Go to End


2 Posts   1496 Views

Avatar
JZubero

Community Member, 2 Posts

8 October 2011 at 4:43am

Hi Folks,

here is the thing:
---------------------
- I've got a hidden Page at the top Level of the SiteTree / Menu
- I want to display the children of that page in the Menu
- Since i try to build a module out of it i don't want to write in the theme template

Folder Structure:
---------------------
- assets
- cms
- mysite
- sapphire
- myModule

SiteTree:
-----------
* MyWebsite
- Landingpage
- Contentpage 1
- Contentpage 2
- MyModulePage (hidden / ShowInMenus = false)
- Child 1
- Child 2
- Child 3
- Contentpage 3
- Contentpage 4

What i would like to have in the front end Menu-Structure:
---------------------------------------------------------------------------
Landingpage Contentpage 1 Contentpage 2 Child 1 Child 2 Child 3 Contentpage 3 Contentpage 4

Has anybody an idea how to solve that without writing to the Page.ss (--> themes/myTheme/Page.ss) ?

Thanks in advance...

Avatar
sheadawson

Community Member, 49 Posts

19 October 2011 at 10:53pm

Hey,

If you are still stuck on this, maybe try using the menu manager module. I just used it on a recent project, really handy for building easily customisable menus... might do the trick for you :)

http://www.silverstripe.org/menumanager-module/