dfunkydog Posted June 17, 2011 Share Posted June 17, 2011 I am trying to change the look of a module but am determined not to touch that module's original files.I've copied the '.tpl' file to my my_theme/modules/modules_name/ directory. So I've been able to rearrange things to the way I want.The problem I'm having is linking to a stylesheet I've created in the same folder above. I have in the tpl file href="{$tpl_dir}modules/module_name/file.css" but that doesn't work.****UPDATE****I might have framed the question poorly. What I'm looking for is the prestashop smarty variable for the current theme. I don't want to use {$theme_dir}/my_theme/ as I'm try to avoid using a specific theme.I've put the css file in my_theme/css/ and called {$css_dir}/my_css_file.css which works, but I'd still like to know the variable for the current theme directory. Link to comment Share on other sites More sharing options...
gijomloy Posted August 14, 2011 Share Posted August 14, 2011 Hello, I am looking for the answer too. What is the smarty variable for the chosen theme directory? I see the post is solved but could not see the answer. Cheers, Guillaume Link to comment Share on other sites More sharing options...
gijomloy Posted August 14, 2011 Share Posted August 14, 2011 En fouillant, j'ai trouve la variable img_dir qui convient parfaitement a mon besoin ! Guillaume Link to comment Share on other sites More sharing options...
siddharth Posted December 23, 2011 Share Posted December 23, 2011 i simply add this code in my "FrontController.php" under the folder classes 'thm_dir'=>_THEME_DIR_, and use it as a default smart variable Its work for me 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