Created
October 24, 2013 08:55
-
-
Save Zauberfisch/7133610 to your computer and use it in GitHub Desktop.
Hide ModelAdmin sidebar in SilverStripe 3.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cms .MyModelAdmin #cms-content-tools-ModelAdmin { | |
display: none !important; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LeftAndMain: | |
extra_requirements_css: | |
- 'mysite/css/cms.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyModelAdmin extends ModelAdmin { | |
private static $managed_models = array('MyDataObject'); | |
private static $url_segment = 'foobar'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment