Declaring a variable in a template
Sorry for probably an obvious question: but I want to set a variable in a template and somehow I can't find how to. So I've declared a variable and want to be able to change the value in a template.
Sorry for probably an obvious question: but I want to set a variable in a template and somehow I can't find how to. So I've declared a variable and want to be able to change the value in a template.
Replies
Low 11 Mar 2014 09:00
I take it you mean with Low Variables? That's not possible. LV are like native Snippets or Global Variables: you set the value in the CP and use them in your templates. You can't change the value on runtime. You might need to look at either Preload Replace vars (native) or Stash (add-on).
Harold Kuiper 11 Mar 2014 09:15
OK. Thanks