taniacr Posted August 10, 2016 Share Posted August 10, 2016 Hi! I'm using the smarty variable {$tpl_dir} and the output i get is : /var/www/vhosts/mysite.pt/httpdocs/themes/mytheme/modules/... But that obviously doesn't work... i need it to be http://www.mysite.pt/themes/mytheme/modules/... {$base_dir} or {$smarty.const._PS_THEME_DIR_} do the same thing. (as they should ) It it a server configuration? I'm using Plesk.. Thank you in advance for any help Link to comment Share on other sites More sharing options...
codetheweb Posted August 10, 2016 Share Posted August 10, 2016 (edited) Hello, You need to use the constant PS_URI_DIR_ Regards, Edited August 10, 2016 by Lefty_sarl (see edit history) 1 Link to comment Share on other sites More sharing options...
Broceliande Posted August 10, 2016 Share Posted August 10, 2016 Hi, http://www.mysite.pt/themes/mytheme/modules/ If you really need to target modules dir within your theme dir, rather than using automatic theme overrides (you didn't tell what you were trying to do) , then you should use {$tpl_uri}/modules/yourmodule/yourfile.... 1 Link to comment Share on other sites More sharing options...
taniacr Posted August 10, 2016 Author Share Posted August 10, 2016 Thank you all for your help! $tpl_uri did it. I'm overriding the paypal module, and the images I want to use are in my theme folder too. Solved! Thanks Link to comment Share on other sites More sharing options...
taniacr Posted August 11, 2016 Author Share Posted August 11, 2016 Thank you very much 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