Is there a way to hide elements on the page when the IPE is active? Perhaps IPE can add a class to the body element?

This would allow for refining the user interface to focus on editing the panel (such as hiding the header, banner, navigation, etc).

I'll see if I can put a patch together for this.

CommentFileSizeAuthor
#1 panels-ipe-body-class-2229767-1.patch450 bytesjoelstein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelstein’s picture

Status: Active » Needs review
FileSize
450 bytes

Here's a patch which adds the "panels-ipe-editing" to the body element when IPE starts (which will be removed by the existing code when IPE closes). Seems to do the trick!

Michelle’s picture

Category: Bug report » Feature request
Status: Needs review » Reviewed & tested by the community

This seems more like a feature request than a bug, so changing category.

I tested the patch and it applies cleanly and it works as advertised.

Body classes before: "html not-front logged-in one-sidebar sidebar-first page-test-page admin-menu panels-ipe"
Body classes after: "html not-front logged-in one-sidebar sidebar-first page-test-page admin-menu panels-ipe panels-ipe-editing"

The div inside the "contextual-links-region" div still has the "panels-ipe-editing" that was there before applying the patch so nothing was removed, only added to the body.

  • japerry committed 3a1ccd0 on 7.x-3.x authored by joelstein
    Issue #2229767 by joelstein: Add way to hide elements when IPE is on
    
japerry’s picture

Status: Reviewed & tested by the community » Fixed

Yup that works. committed.

Status: Fixed » Closed (fixed)

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