contao/test — Issue #2989: Add ability to add IE special StyleSheets to template
Author: DyaGa
Created: 2011-11-29 11:22:26+00:00
State: open
Labels: Feature, frontend

Now, if we want to add module stylesheet to template we can do this by adding path to stylesheet to @$GLOBALS['TL_CSS']@ array, example:

$GLOBALS['TL_CSS'][] = 'system/modules/some_module/html/style.css';
$GLOBALS['TL_CSS'][] = 'plugins/some_plugin/style.css';

But, it's not possible to add IE special files (with conditional comments).

They can be added only from @tl_style@ table.
I propose to add global value @$GLOBALS['TL_CSS']['IE']@, and use it like:

$GLOBALS['TL_CSS']['IE']['lte IE 8'][] = 'path/to/ie_style_sheet/ie8.css';
...

or something like that...