Version: 4.1.2 Reporter: James Catt —
I have a template like so:
{my_fluid_field}
{my_fluid_field:my_relationship_field}
{if content:my_field}
TRUE
{if:else}
FALSE
{/if}
{/my_fluid_field:my_relationship_field}
{/my_fluid_field}
The trouble is that the conditional is coming back false even though {my_field}
is definitely populated—I’ve tried it with {content:title}
as well as a file field, same results for both. If I set the conditional to {if 1 == 1}
or {if 1 == 2}
then it works as expected.
If I remove the conditional and just put {content:my_field}
, then I get the correct output of the field, as expected.
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); } ```