I am trying to only display the values of the entries of the checkbox value is 'true' in the Details Template. Currently the code below calls all the entries and puts 'true' or 'false' behind the entry (as it obviously should:
Code: Select all
{if isset($entry->fields) }
{foreach from=$entry->fields key='field_name' item=customfield}
{$customfield->name}: {$customfield->value}<br />
{/foreach}
{/if}
Code: Select all
{if $entry->customfieldsbyname.Yourname ne ''}
{$entry->customfieldsbyname.Yourname}
{/if}
I have CMSMS 1.10 and CD 1.13.
Any advice would be great.
Thanks
Dewald