Discussions

Ask a Question
Back to All

Using booleans in metafields

I set up a metafield with a boolean value and used it to control display of a portion of a page inside the tag {% if %}. I set it up in my config file using true or false for the default values, and the page displays in Wagon as I would expect based on the value I set. But when I push the site to the engine, the value I set using the back office makes no difference in the display of the page. The portion of the page I'm trying to control displays regardless of the value. I'm wondering if I have a fundamental misunderstanding of something.