Jump to content

Smarty variables? (1.7)


Recommended Posts

Hi, I'm developing a theme on PS 1.7 and cannot get the smarty variable that returns the theme's image folder (themes/my_theme/assets/img), was trying to get values in console but always returns blank. This on index.tpl of theme, already customized.


 


Already try:


console.log('{$base_dir}');


console.log("{$base_dir}");


console.log('{$img_dir}');


console.log('{$img_ps_dir}');


 


Console works fine, if put a string, shows in output.


 


Additionally can't find complete documentation in official pages (with the smarty variables for example). Anyone could help me, thanks in advance


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...