Bug #20727 Version Retired

if grid__custom_field - does show all content(html) when no data added to grid.

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

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

ExpressionEngine News!

#eecms, #events, #releases