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...
shokinro Posted July 21, 2011 Share Posted July 21, 2011 the cms page content is saved in database and is treated as text (HTML) code, it will not go though Smarty compiling.so the smarty variable will not work.I suggest to relative URL in stead of absolute URL. Link to comment Share on other sites More sharing options...
Recommended Posts