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.

Template Questions

Display Children of a hidden Page


Reply

2 Posts   502 Views

Avatar
Querdenker

8 October 2011 at 4:43am Community Member, 2 Posts

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

19 October 2011 at 10:53pm Community Member, 46 Posts

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/