Version: 2.9.2 Reporter: Riverboy —
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
Hi.
I’m building new area to my website and have a channel with several categories a lot of channel fields. Some of fields aren’t used per category related entries so I need to use conditionals.
And with GRID field I have issues.
So,I have:
{!-- SERVICE IMAGES START --}
{if service_images}
<div class="module_line_trigger" data-option="hasShadow" data-background="#e1e1e1 url(/img/bg_pattern1.png) repeat 0 0" data-top-padding="top_padding_normal" data-bottom-padding="module_normal_padding">
<div class="row-fluid">
<div class="span12 module_cont module_gallery">
<div class="bg_title"><h4 class="headInModule">Photos</h4></div>
<div class="list-of-images">
{service_images}
<div class="gallery_item view view-tenth">
<a href="http://{service_images:sphoto}" class="prettyPhoto">_ {service_images:sphoto} _ <div class="mask">_ <div class="gallery_descr">_ <h2 class="post_type_image">{service_images:sphoto-info}</h2>_ </div>_ </div>_ </a>
</div>
{/service_images}
<div class="clear"></div>
</div>
</div>
</div>
</div>
{/if}
{!-- END OF SERVICE IMAGES IF AVAILABLE --}
But when entry does not have any content to this grid field, it is still yelling out all html even that all are wrapped inside of conditional.
Ideas, bug or a coding error?
Using latest EE, running with PHP 5.6.2
Thanks
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); } ```