In-Line Editing Issue - Site Variable

edited May 2012 in Bug Reports
I've added a new site_variable which has a name of 'test' and an ID of 1. When I try to edit this via the in-line editor the value is not being found. I'm getting the following errors in the developer console. Looks like its trying to find the site_variable with a value of 0, which doesn't exist.

echo fuel_var('test',true,'default_value') ;

Failed to load resource: the server responded with a status of 404 (Not Found) - /fuel/default/inline_edit/test/0

Any suggestions would be appreciated. Thank you

Comments

  • edited 3:52AM
    fuel_var will pull in values from the pages module only and not the site variables
    try using the following to create the inline editing code:
    <?php echo fuel_edit('test', 'Site variable test', 'sitevariables')?> Then to merge the value into the template simply merge it like so: <?php echo $test?>
  • edited 3:52AM
    That did the trick.

    Thanks for your help, I appreciate your prompt response!
Sign In or Register to comment.