Is it possible to set a variable in one template and have it available to use in another template?
Edit:
I forgot to add that the template I want to set the variable in is using a different domain, although it is still the same site.
Variable Available Across Templates
Variable Available Across Templates
Last edited by benm on Tue Oct 29, 2013 2:40 pm, edited 1 time in total.
Re: Variable Available Across Templates
You can do it something like this with a cookie or a session variable
Re: Variable Available Across Templates
Hi Chandra,
Many thanks for your reply. Unfortunately the other template is being used for a different domain, although it is still the same site (it is a landing page). So cookies or session variables won't work.
Ben
Many thanks for your reply. Unfortunately the other template is being used for a different domain, although it is still the same site (it is a landing page). So cookies or session variables won't work.
Ben
Re: Variable Available Across Templates
Another way could be to save the variable in a text file inside the /tmp/config folder