3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2651 Views |
-
Change priority order of CSS in Requirements::themedCSS

30 May 2009 at 11:11am
Hi
Does anyone know if it's possible to change the order that the CSS are listed when SilverStripe builds the page.
In the current version 2.3.1 the CSS in Requirements::themedCSS() statements are compiled after my custom CSS in the template. Is there a way to change the order so that the required css are compiled and then my custom css in the template?
Thanks in advance
Aaron
-
Re: Change priority order of CSS in Requirements::themedCSS

3 June 2009 at 9:09pm
Hi Aaron
Have you tried using the Requirements::customCSS() I think that adds it in after the other requirements.
There is also a bug in the current (and upcoming 2.3.2) versions which means that requirements are added at the end of the head section, even when you have conditional includes for IE6 etc. There is a discussion about this here:
http://groups.google.com.au/group/silverstripe-dev/browse_thread/thread/b8bd6dd5ede2f84fThere is also a patch available attached to this ticket: http://open.silverstripe.com/ticket/3497 though not sure it is for the current version based on will's last comment in the ticket.
Hope that helps
Aram
-
Re: Change priority order of CSS in Requirements::themedCSS

3 June 2009 at 9:19pm
Hi Aram
Thanks for the info, I'll take a look at the two links and see if they help.
What we need is to be able to overwrite any module css with a custom one which we can then switch based on the browser using something like this http://www.silverstripe.org/archive/show/58061#post60072
We're working on it this week so I'll post back any solutions here
Thanks
| 2651 Views | ||
|
Page:
1
|
Go to Top |


