If you are using admin module and the context_ui module, or if you have positioned the context-editor_ui block into one of your regions, empty blocks show up saying "This block appears empty when displayed on this page.". This is great because it means that you can manage the position of those blocks, and it means that empty block's position doesn't get lost when you resave a content. However, its very distracting having these show.

Attached patch adds/removes the context-block-hidden class when entering/exiting the context inline editor. This means that the empty blocks only show up when you are actually doing inline context editing.

I think the problem is similar to that described in #872564: Empty blocks are shown though not exactly the same, and that issue if for D6.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Active » Needs review
FileSize
1.61 KB
mrfelton’s picture

This patch works better, ensure that the entire block is hidden/shown, and not just the block content.

mrfelton’s picture

note - clear your cache after applying to ensure the new preprocess function gets picked up.

tekante’s picture

Status: Needs review » Fixed

Committed, thanks for the bug report and patch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.