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.

General Questions /

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

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

ShowInMenus


Reply


977 Views

Avatar
stevanovich

Community Member, 60 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';