[RESOLVED] PRODUCTS - Why is this code not working?
Posted: Wed Nov 13, 2013 5:07 am
I wanted to make the inclusion of EventsManager conditional in my details template, so I added a checkbox field "has_dates" and the following Smarty code:
EventsManager is still showing for all products regardless of the setting of has_dates. Why?
However,
Code: Select all
{if $entry->fields.has_dates->value == true}
<h3>Upcoming Dates</h3>
{EventsManager status="published"}
{else}
Availabile at any time: <a href="/contact">Contact Us</a>
{/if}
<!--
{$entry->fields.has_dates->value}
-->
However,