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:
FilterSettings.php
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:
FilterSetting.php
class FilterSetting extends DataObject {
static $db = array('filter_name' => 'VarChar(50)','filter_type'=>'VarChar(50)','filter_active'=>'int(1)');
}
After I run:
mydomain.com/admin/?flush=all
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?
Thanks.