Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When you create a default panel for a content type (http://example.com/admin/config/content/panelizer) it is not given a valid context, so the default content panes are invalid. This only affects the D7 port, the D6 port behaves correctly.
Comment | File | Size | Author |
---|---|---|---|
#7 | panelizer-n1214016-7.patch | 5.65 KB | DamienMcKenna |
#2 | panelizer-n1214016.patch | 1.1 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaInterestingly, panelizer_get_default_display_node(), which creates the default panel, is the same for both D6 and D7, so presumably something else in the API changed.
Comment #2
DamienMcKennaPart of the problem - the context specs were not being displayed on the admin/config/content/panelizer/node/[type]/context page, this patch fixes the Form API changes in D7.
Comment #3
DamienMcKennaThis isn't completely fixed yet..
Comment #4
DamienMcKennaRight now, when you go to admin/config/content/panelizer/node/[type]/content it whitescreens. This page calls panelizer_default_content_page(), which then calls panelizer_edit_content($panelizer); this function contains the following:
The problem is that if the settings have not been saved yet the $panelizer->did value is NULL, thus it gets to the end and just returns a blank screen.
Comment #5
DamienMcKennaI temporarily solved the problem from #4 with the following extra code added just before the else{} block:
Still working on it..
Comment #6
DamienMcKennaAnother part of the problem is that the general panelizer_edit_content() function uses the entity-specific panelizer_save_node_panelizer() function to save the data. Naughty!
Comment #7
DamienMcKenna#6 turns out to be a core problem here, so here's a fix that restores the original panelizer_default_content_page() and moves the panelizer_edit_content() code back into panelizer_edit_node_content_page(); I've also included the fix from #2 above.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted, pushed.