Search the Community
Showing results for tags 'echo'.
Found 1 result
I have an area on my homepage that I want to print data based on a checkbox value in my site settings template. When the box is checked I want to output some HTML. I've tried various combinations of code but can't get it to work. Here's what I have at the moment. <?php $settings = $pages->find("/site-settings/"); if ($settings->mycheckboxfield == 1) echo "<li>This</li>"; ?> Any ideas?