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

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


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"}

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.