Register Custom CSS File in BaseTree_BeforeTreeRender Method
I'm trying to add a custom CSS file to the content tree but using the following code I am getting a null value when trying to access the ClientDependencyLoader.
I haven't tried to add a custom CSS for the content tree, but might be worth taking a look at an upcoming package I've been working on called BackOffice Power Scripts. It lets you insert custom CSS/JS directly into the back-office, via a config file.
It doesn't use ClientDepenedency - but inserts the references via a HttpModule Response Filter.
The current RC1 download adds them to the "umbraco.aspx" only ... but there's a branch called "injector" which is still a work-in-progress, that can target specific pages. Feel free to grab the source and rip out any parts that you need, etc.
This seems insanely difficult for something that should be quite simple. Due to time restrictions I am going to have to edit the umbraco.aspx file by hand but hopefully I will get time at some point to resolve this, maybe something in your source will lead me to a solution.
Register Custom CSS File in BaseTree_BeforeTreeRender Method
I'm trying to add a custom CSS file to the content tree but using the following code I am getting a null value when trying to access the ClientDependencyLoader.
How should I go about registering my file? Without using CDF?
Cheers, Simon
Hi Simon,
I haven't tried to add a custom CSS for the content tree, but might be worth taking a look at an upcoming package I've been working on called BackOffice Power Scripts. It lets you insert custom CSS/JS directly into the back-office, via a config file.
It doesn't use ClientDepenedency - but inserts the references via a HttpModule Response Filter.
https://bitbucket.org/vertino/backoffice-power-scripts-for-umbraco/downloads
The current RC1 download adds them to the "umbraco.aspx" only ... but there's a branch called "injector" which is still a work-in-progress, that can target specific pages. Feel free to grab the source and rip out any parts that you need, etc.
Cheers, Lee.
This seems insanely difficult for something that should be quite simple. Due to time restrictions I am going to have to edit the umbraco.aspx file by hand but hopefully I will get time at some point to resolve this, maybe something in your source will lead me to a solution.
Cheers, Si
is working on a reply...