4572 Posts in 1316 Topics by 981 members
Customising the CMS
SilverStripe Forums » Customising the CMS » Page by default not visible in menus
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 820 Views |
-
Page by default not visible in menus

18 May 2010 at 8:21am
Hi out there,
I hope you can help me and btw I hope I´m in the right forum
:
I want a custom page which is a subclass of page to be by default not visible in menu.
There is a checkbox in the CMS called "Show in menus?" be deault this chebox is checked... but I don´t want that.I think there should be a variable such as
static $is_visible_in_menus = false;
is there such a variable?
best regards
-
Re: Page by default not visible in menus

18 May 2010 at 6:23pm
You can use the $defaults array.
// mysite/code/Page.php
static $defaults = array(
'ShowInMenus' => false
); -
Re: Page by default not visible in menus

19 May 2010 at 5:22am
That´s exatly what I was looking for...
thank you
| 820 Views | ||
|
Page:
1
|
Go to Top |


