Bug #23540 Bug Fixed

Conditionally detecting fluid content doesn’t work with grid

Version: 4.1.2 Reporter: James Catt

I have the following in my template:

{if my_fluid_field}

  {my_fluid_field}

    {!-- code for handling fluid content output --}

  {/my_fluid_field}

{if:else}

  {my_legacy_field}

  {!-- more legacy fields here --}

{/if}

As you can probably guess, I’m trying to move my site’s content to use a fluid field without breaking legacy content (i.e., the fluid field replaces the legacy code when there’s content in it, otherwise it gets ignored).

This works fine for the most part, but not if the entry’s fluid field only contains a grid. In that case the conditional fails (I’ve confirmed that the grid is populated with content for that entry) and the legacy content displays instead.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases