5116 Posts in 1525 Topics by 1118 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 889 Views |
-
Re-skining the CMS

5 October 2009 at 10:06pm
Quick question. I know that there is a way of customising the CMS' appearance. I also know there is a forum post and a Wiki page about this, but I have been completely unable to find either.
Could anyone point me to these?
Cheers,
Mo
-
Re: Re-skining the CMS

6 October 2009 at 7:45am
Hi Mo
Great work on the dashboard module, I look forward to using it on my next project
here is the doc's page you are looking for: http://doc.silverstripe.com/doku.php?id=recipes:rebranding-the-cms
It's not particularly extensive though.
I recently did a pretty extensive CSS rejig of the CMS by decorating LeftandMian with a new CSS requirement. That way you can do it from a module rather than having to edit the core files.
So I had a file called UIDecorator.php and it contained:
class UIDecorator extends LeftAndMainDecorator {
function init() {
Requirements::CSS("lite_UI/css/lite_ui.css");
}}
then in the config file I added:
Object::add_extension('LeftAndMain', 'UIDecorator');
That then let me override all of the styles in cms/css
You could also add your JS files requirements in there for some jquery modal window stuff as per your other post.
Hope that helps
Aram
-
Re: Re-skining the CMS

6 October 2009 at 8:35am
Oh cool, thanks Aram. This will be really helpful.
Quick question though, I thought classes that are used via Object::add_extension() had to extend the Extension class?
-
Re: Re-skining the CMS

6 October 2009 at 8:46am
hmm, not sure I entirely follow :s
The LeftAndMainDecorator class is an inbuilt class specially for extending LeftAndMain in this way......I don't really know much more than that
-
Re: Re-skining the CMS

6 October 2009 at 9:41am
Oh right, I image that is fine then. I just know I got an error the other day, I think i was doing something like:
class someclass extends ContentControler {
...
}The error told me it should be:
class someclass extends Extension {
...
}But that was probably just in that instance, so never mind
| 889 Views | ||
|
Page:
1
|
Go to Top |


