evolution.x Posted July 21, 2011 Share Posted July 21, 2011 Hi,I am trying to use smarty variable in my CMS pages but they don't seem to work?For example I am trying to use {$base_dir} instead of hard coding my WWW address but it doesn't work.When I look at the source code of the CMS page generated it only prints "{$base_dir}link-to-image.png" ?Anyone have any ides on this?RegardsAdam Link to comment Share on other sites More sharing options...
realayumi Posted November 23, 2011 Share Posted November 23, 2011 As Shonkiro said http://www.prestashop.com/forums/topic/120653-trying-to-use-smarty-variables-base-dir-in-cms-page/page__view__findpost__p__593693 Use relative url instead of absolute url. Example: upload image to img/test.jpg Than in cms <img src="img/test.jpg" /> 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