Needs review
Project:
Views Boxes
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2011 at 22:33 UTC
Updated:
10 Jan 2014 at 16:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brenk28 commentedThis patch adds a "Hide if Empty" checkbox.
Comment #2
jec006 commentedComment #3
e2thex commentedSo if this box is checked, and no view is displayed, how does one edit the box?
Comment #4
jec006 commentedInteresting question. I think boxes in general needs a better way to handle empty-ness. Maybe this is a question that should be addressed at a higher level?
I definitely see a need for hiding a view box to the user if the view is empty. Perhaps people with privileges to edit it should see a 'this box appears empty' placeholder?
Comment #5
tirdadc commentedI posted a response to the related ticket in the Boxes queue. I don't think the checkbox approach is the best way to do this considering we can now have inline editing for empty boxes for users with the right permissions. Allowing plugins to return nothing seems to be a better option.
Comment #6
wbobeirne commentedAttaching a slightly different patch that also marks the title as '' when there's no content, else you'll have a floating title. Works in conjunction with this patch: http://drupal.org/node/1440178#comment-5600730
Comment #7
jec006 commentedComment #8
recrit commentedupdated patch to only look at $content and the view's results, ie no checkbox option to 'hide empty'.