How would you perform a conditional on a custom checkbox field in which the user can select 0 -4 different options?
In other words, I have a "Checkboxes" fieldtype named "{side_content_selectables}".
This fieldtype has the following options:
- Show Search
- Show Feed Subscription
- Show Categories
- Show Recent Posts
Which would just allow them to turn widgets on or off. In my template, I have the following:
<aside id="sidebar">
{exp:channel:entries channel="side_content" limit="1" dynamic="no"}
{if {side_content_selectables}"{item}" == "Show Search"{/side_content_selectables}}
<section class="widget">
<h3>Search</h3>
{!-- Search Form --}
</section>
<!-- /.widget -->
{/if}
OR
{if "Show Feed Subscription"}
<section class="widget">
<h3>Subscribe</h3>
{!-- Feedburner Widget --}
</section>
<!-- /.widget -->
{/if}
Neither of these seem to work though. This makes me feel like a big noob, but I am stumped on this one. ;)
It's almost like I would need to write out a PHP script to perform a contains, but that just seems like overkill and I would like to keep PHP from being used in templates.