Version: 3.3.4 Reporter: Rob Allen —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
Pre 3.4.0 the following worked (file field inside a grid), if no file nothing would be outputted:
{news_extended}
{news_extended:image}
<figure>
{url:medium}
<figcaption>{description}</figcaption>
</figure>
{/news_extended:image}
{/news_extended}
With 3.4.0 that now outputs empty tags when previously it outputted nothing - not expected behaviour?
You can get around it by wrapping the file tag in a conditional, but seems a bit excessive:
{if news_extended:image}
{news_extended:image}
<figure>
{url:medium}
<figcaption>{description}</figcaption>
</figure>
{/news_extended:image}
{/if}
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); } ```