2

Is there a simple way to create a custom conditional a bit like this:

In the template:

{exp:low_variables:single var="footer" foo="bar"}

In the variable:

   {if foo == "bar"}
      Show something here
   {/if}

I've played around with preload_replace a bit but no joy so far

1

You can use the preparse:my_var parameter, available only in the Textarea variable type. Example:

{exp:low_variables:single var="my_var" preparse:foo="bar"}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.