I’d like to use conditionals to set up a “variable” to use throughout my template. I thought this might work:
{if segment_2 != 'all'}
{preload_replace:seg_2="{segment_2}"}
{if:else}
{preload_replace:seg_2="nada"}
{/if}Unfortunately, it always sets seg_2 to “nada” regardless of the conditional result. I’m assuming it’s because of the parsing order or such. I’ve tried using plugins such as MX Jumper and Variables with the same results.
Have I somehow missed an easy way of creating and re-assigning “variables” in EE?