Digital Essence Posted September 6, 2011 Share Posted September 6, 2011 Hi, In my /theme/header.tpl file I have the following: {if isset($css_files)} <!-- start of auto css --> {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} <!-- end of auto css --> which I assumed would pick up any css files but it seems to just chose a few. For example it has produced: <!-- start of auto css --> <link href="/themes/dev/css/global.css" rel="stylesheet" type="text/css" media="all" /> <link href="/css/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" media="screen" /> <link href="/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="all" /> <!-- end of auto css --> whereas my /themes/dev/css/ dir contains the following: global.css global_original.css reset.css styles.css and the root/css/ dir contains a lot more than just the two jquery.*.css files Am I getting this wrong or is this behaviour correct? thanks. Link to comment Share on other sites More sharing options...
Digital Essence Posted September 6, 2011 Author Share Posted September 6, 2011 On further searching I find that /classes/FrontController.php is controlling this and if I hard code additional Tools::addCSS I can add extra css files but I might as well just hard code them into header.tpl. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now