site variables template parsing

edited August 2016 in Modules
Hi, I'm new to fuel cms and got stuck when adding an image using cms admin to the site variable, I've used fuel_var to echo the site variables but the template parsing didn't parse the img src value as it should. am I missing something here ?

Comments

  • edited 11:11AM
    What was parsed instead and were there any error messages?
  • edited 11:11AM
    no error messages, the template parsing tag was printed as is, I've add the below line in the site variable using cms admin

    and it was printed as is, I've used a static view to print it out like this
    <?
    echo fuel_var('variable_name'); ?>
    in my layout I've added
    $vars['parse_view'] = TRUE;
  • edited August 2016
    now it is working using parse_template_syntax. but do I need to call parse_template_syntax everytime I echo a variable?
    isn't their more dynamic way since am planning to split the website content into site variables and the cms users will require to add assets.
    appreciate your feedback
  • edited 11:11AM
    For the site variables, you may need to do that if you have template parsing tags in it.
Sign In or Register to comment.