Hi!
I'd like to make it a little bit easier to add custom stylesheets and scripts that are only required for specific templates.
All my template call main.php, which contains 99% of the markup.
In my main.php I added the following code:
<?
/*Load required scripts and style sheets*/
$config->scripts->prepend("https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");
$config->scripts->add($config->urls->templates . "scripts/all-js-min.js");
$config->styles->prepend($config->urls->templates . "styles/main-min.css");
$config->styles->add($config->urls->templates . "styles/jquery.fancybox-min.css");
?>
<?
foreach($config->scripts->unique() as $file) echo "\n\t<script type='text/javascript' src='$file'></script>";
foreach($config->styles->unique() as $file) echo "\n\t<link type='text/css' href='$file' rel='stylesheet' />";
?>
Everything is working, but for some reason the ProcessRedirects.css of Apeisa's great ProcessRedirects module gets also loaded. This isn't a big issue, but I don't understand why this one is listed, while CSS files of other modules are not. Can someone explain this?
/Jasper