21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1944 Views |
-
Show in menus/show in search off by default?

29 September 2009 at 7:01am
I have a page type where the Show in Menu and Show in Search will always be switched off. Is there a way to set theses so that, that is their default mode?
Thanks
MM
-
Re: Show in menus/show in search off by default?

29 September 2009 at 7:28am
Hi!
That’s easy. Put the following in your page class:
static $defaults = array (
'ShowInMenus' => false,
'ShowInSearch' => false
);Hope it helps,
Juan -
Re: Show in menus/show in search off by default?

29 September 2009 at 11:36am
Thanks for the quick response Juan. Works a treat.
| 1944 Views | ||
|
Page:
1
|
Go to Top |
