Bug #23759 Accepted

If statements with Fluid toggles don’t work as documented

Version: 4.3.6 Reporter: dgtlmkt

https://docs.expressionengine.com/latest/fieldtypes/fluid.html#toggle-fields

The if statement shown in the document above won’t display the text when the field is toggled to ON. The {content} block must be included in order for the text to appear, like so:

{my_fluid_field}
  {my_fluid_field:my_toggle}
    {if content}
      {content}
      YES there is a toggle value!
    {/if}
  {/my_fluid_field:my_toggle}
{/my_fluid_field}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases