I want to hide a div when there are no images in a custom field. The result is that when there ARE images in the custom field pagina_slideshow the div is shown. That’s OK. But when there are no images the div is still there and not hidden as expected.
It seems to me that this function only works with standard common custom fields and not with fields from a type like Channel Images or WYSIWYG editors.
So, how do I hide the div?
{if pagina_slideshow != ""}
<div id="slideshow">
<!-- "previous page" action -->
<a class="prevPage browse left"></a>
<!-- root element for scrollable -->
<div class="scrollable">
<div class="items"> {exp:channel_images:images entry_id="{entry_id}"} <img src="{image:url}" alt="" /> {/exp:channel_images:images} </div>
</div>
<!-- "next page" action -->
<a class="nextPage browse right"></a>
<!-- wrapper element for the large image -->
<div id="image_wrap">
<!-- Initially the image is a simple 1x1 pixel transparent GIF -->
<img src="/graphics/layout/blank.gif" width="450" height="300" /> </div>
</div>{/if}
