I have a view as follows:
- Display: Master
- Format: Unformatted list
- Fields: Content: Images
- Filter criteria: Content type, published
- Contextual filter: Content: Nid with 'Provide default value' set to 'Content ID from URL'
The view is placed on the node using Panels and Panalizer modules.
The node in question had no images uploaded to the image field but the view is outputting an empty row as follows:
<div class="view view-case-study-images view-id-case_study_images view-display-id-default view-dom-id-0c286f7a769d643d2e0cf9709edc0c79"> <div class="view-content"> <div class="views-row views-row-1 views-row-odd views-row-first views-row-last"> </div> </div> </div>
I have checked and unchecked the 'Count the number 0 as empty' and ' Hide if empty' on the 'Content: Images' field but the view still shows.
How can I hide the view (by removing this empty row) if there are no images on a node?
Happy to attach any additional information you require to this post. Thanks.