In-Line Editing Issue - Site Variable
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
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?>
Thanks for your help, I appreciate your prompt response!