Is there a way to test Config Settings values?

I want to display content based on the value of a config setting named "parade_active".  The content would only display if the setting's value is "true".  Is there a way to do this with Webvanta script?

Have more questions? Submit a request


  • 0
    Michael Slater

    Yes, you can do this. It is a little non-intuitive, in that the "if" tag only works in an item context, so you need to have that context, even if there is no item being accessed.

    The code for what you want to do is:

    <w:kb:item:if condition "{{parade_active}} = true">Content to display if condition is met</w:kb:item:if>

    Config settings are automatically available as variables, which is why you use the {{ }} around the config setting name.

  • 0

    That's great.  Thanks!

Please sign in to leave a comment.
Powered by Zendesk