contao/test — Issue #2985: Add ability to add IE special StyleSheets to template
Author: DyaGa
Created: 2011-11-29 11:21:18+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: