Some customization of SilverStripe 3.0

I just started with SilverStripe, and here are a few things I stumbled upon while testing the possibilities of this Framework/CMS, hope it will be helpful to someone.
First, some things you can do right in your mysite/_config.php. You can remove most of the admin menu links by using:
CMSMenu::remove_menu_item(‘ReportAdmin’); // Reports link for example
Also, you can define the Admin page title, not to display SilverStripe with:
LeftAndMain::setApplicationName(“MyApplication”);

There are two ways to remove the index.php/ part from the url, but before you do that make sure your mod_rewrite is working. First way is to edit the first line of code in index.php so it says:

define('BASE_SCRIPT_URL',''); // Originally : define('BASE_SCRIPT_URL','index.php/');

The other way is to just completely delete index.php

And for those that don’t like the “Help” link in the admin menu, you have to go a bit deeper and edit /framework/admin/code/LeftAndMain.php.

As it says at line 173:

// can’t be done in cms/_config.php as locale is not set yet

So, you can just comment out the following lines:

/*CMSMenu::add_link(
'Help',
_t('LeftAndMain.HELP', 'Help', 'Menu title'),
self::$help_link
);*/

Happy coding!

Comments

2 responses to “Some customization of SilverStripe 3.0”

  1. steroid injection sites knee Avatar
    steroid injection sites knee

    Hi there! I just wanted to ask if you ever have any
    problems with hackers? My last blog (wordpress) was hacked and
    I ended up losing many months of hard work due to no backup.
    Do you have any solutions to stop hackers?

  2. website Avatar

    Saved as a favorite, I like your site!

Leave a Reply

Your email address will not be published. Required fields are marked *