Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Customizing cms menu doesn't work well

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

Page: 1
Go to End
Author Topic: 340 Views
  • ud2013
    Community Member
    6 Posts

    Customizing cms menu doesn't work well Link to this post

    Hello all,

    I have a question, well maybe a couple of question. I use ss3.

    I've been trying to add a new menu item to the cms (to customize the cms for a client), what I have done is the following:

    I have created the following pages.

    In the mysite/code folder:

    class FilterSettings extends ModelAdmin {
       public static $managed_models = array('FilterSetting');
       static $url_segment = 'filtersettings';
       static $menu_icon = 'framework/admin/images/filtersettings.png';
       static $menu_title = 'Filter Settings';

    In the mysite/code folder:

    class FilterSetting extends DataObject {

       static $db = array('filter_name' => 'VarChar(50)','filter_type'=>'VarChar(50)','filter_active'=>'int(1)');

    After I run:


    The new menu item is shown, when I click on it, there is nothing shown on the right, this is correct because there is nothing to be shown yet. But when I click on another menu item (Pages for example). Nothing is shown aswell, while the pages part should be shown.

    Can anyone help with this?

    The other question is the following.

    How and where do I need to put the files when customizing the cms menu. Now I had put them into the mysite/code, but the documentation is not very clear on where to put what code?


  • cwchong
    Community Member
    13 Posts

    Re: Customizing cms menu doesn't work well Link to this post

    You mentioned you did a /admin/?flush=all but did you do a /dev/build/?flush=1 ?

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.