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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

ShowInMenus


Go to End


1157 Views

Avatar
stevanovich

Community Member, 63 Posts

17 June 2010 at 5:42am

Hi

I have created a special offers page and using the extending your site tutorial for staff which is fine and my page work okay. With the special offers I don't want them showing in the sidebar menu as children. So I put in the ShowInMenus = 0 etc. But the sub pages are still showing any idea why.

Silverstripe 2.4

-----------

class SpecialOffersPage extends Page {

static $defaults = array(
'ShowInMenus' => 0
);

static $db = array(
);
static $has_one = array(
'Photo' => 'Image'
);

static $default_parent = 'SpecialOffersHolder';