Should be able to hide a view box if the associated view does not return any results.

I think the boxes view hook needs updated in order to achieve this.

CommentFileSizeAuthor
#1 hide-if-view-empty-1355204-1.patch673 bytesbrenk28

Comments

brenk28’s picture

StatusFileSize
new673 bytes

Here is a patch.

tirdadc’s picture

Status: Active » Needs work

Now that inline editing of empty boxes is possible, I'm not sure a checkbox approach is the preferred way to achieve this. I think Views Boxes should be fixed to return nothing when no results are found in that existing issue, that way we can leverage the same mechanism as any empty box (if you have the permission to edit them, you'll see the placeholder and can still edit it).

jec006’s picture

Status: Needs work » Closed (duplicate)