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.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```