Jump to:

23355 Posts in 17734 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » ShowInMenus

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

Page: 1
Go to End
Author Topic: 892 Views
  • stevanovich
    Avatar
    Community Member
    59 Posts

    ShowInMenus Link to this post

    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';

    892 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.