Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | panels-ipe-body-class-2229767-1.patch | 450 bytes | joelstein |
Comments
Comment #1
joelstein CreditAttribution: joelstein commentedHere'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!
Comment #3
MichelleThis 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.
Comment #5
japerryYup that works. committed.