I've got a view (being used as a changable header image per node) with one image field, no results behavior, filter criteria of a few different content types (all with the same field) and a contextual nid filter set to provide the content from url and display content of no results behavior if avail (http://puu.sh/3EPnv.png). The contextual filter works correctly for nodes with images on them but for nodes without, no results isn't displaying as the view is returning the following:

<div class="view-content">
        <div>
      </div>
</div>

Output is Unformatted list of fields, all of the formatting removed on the field (no default classes etc..), hide if empty checked on the field and formatter etc.

From what I've been reading this could be related to the filter criteria being set incorrectly (i.e. not filtering out the nodes where the image field is missing)? If so, how do I only show the image field on nodes where it's populated and show 'NO RESULTS BEHAVIOR' content on nodes where it's not?

Comments

davemybes’s picture

Just had the same issue. I think it might be related to a contextual filter being used and/or a field that is excluded from the display, but used in a rewrite somewhere. Anyway, the solution we used is to add a filter for a field we're using and use Not Empty as the filter option. If its empty, the View won't show up at all. Works like a charm for us.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)