I can’t seem to find any information about this either way…
Is it possible to create new variables to use across a template in the same way I would with PHP?
For instance:
{if segment_1 == "dogs"}
{variable = 1}
{if:elseif segment_1 == "cats"}
{variable = 2}
{if:else}
{variable = 3}
{/if}
img/design/background_{variable}.jpgI know I could probably just use {segment_1} in this example, but I want to be able to assign variables based on conditional statements in a number of places.
I tried using PHP within the conditionals and it doesn’t want to cooperate.
Thanks!