When a block is added to the homebox and it is empty or has no content, it will still be rendered.
Only render the empty blocks when the user has role "administrator" for other roles do not render the empty blocks.
Probably the rendering of the empty blocks should be controlled by a permission.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | do_not_render_empty_blocks-3012853-12851000.patch | 4.96 KB | bonrita |
| #2 | homebox_empty_blocks-3012853-12850876.patch | 1.25 KB | bonrita |
Comments
Comment #2
bonrita commentedFix
Comment #3
bonrita commentedComment #4
bonrita commentedComment #5
bonrita commentedComment #6
bonrita commentedAdd an event that can be used by developers to add logic that will control visibility of a block e.g check for view blocks who have empty content.
For example
Comment #7
drummI think homebox should simply not render empty blocks, following the lead of the core block system. Is there any parallel to this in the block system, or core layouts? If a module is adding an empty block that needs more configuration, it should provide a message pointing the user toward what to do next.
Comment #8
bonrita commentedComment #9
anybodyAgreed!
Comment #10
anybodyComment #11
anybodyComment #12
anybodyComment #13
anybodyLet's check if this is still an issue in 3.0.x once alpha has been released.
Comment #14
anybodyWe'll solve this in 3.0.x-dev!
Comment #15
anybody@thomas.frobieter I think this is solved in 3.0.x as of our last talk?
Comment #16
thomas.frobieterYes, this is the default behavior of the 3.x default layout, so this is fixed!