In certain (many?) scenarios, the 'Panelizer' items are not being added to the content types table at admin/structure/types.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | panelizer_items_not-2212873-6.patch | 664 bytes | mglaman |
| #2 | panelizer-n2212873-2.patch | 3.36 KB | damienmckenna |
Comments
Comment #1
damienmckennaThe page customization is dependent upon the theme - it works correctly with the Seven (core), Bartik (core), and Aurora themes, it does not work with Stark (core), Adaptive Theme v3, Corolla (based on Adaptive Theme v3), Ember, Garland (core), Omh (part of Omega v4), Omega v4, Zen v5. In each case that the links are not added it is because in hook_page_alter() there is no $page['content'] structure.
Comment #2
damienmckennaAdded some extra comments to hook_page_alter.
Comment #3
damienmckennaComment #4
damienmckennaI've added issues for several base themes, hopefully we'll be able to work this out:
Comment #5
damienmckennaOk, I've committed that small bit of code, will need to dig into the problem soon.
Comment #6
mglamanNote: I was a dunce and original posted comment/patch in the Omega queues issue for this.
In order to get it to work I had to move to the theme layer. Why? Not sure, but page_alter didn't have the content variables yet.
This is how I got it to work with existing code. I chose process over preprocess so that it runs last, hopefully avoiding anything running in preprocess and borking it p.
I know page alter would be optimal, but I really do feel that this could solve problems across themes. It's probably a DrupalWTF. Attaching a patch so that people can at least patch Panelizer - or have this committed as a fix.
Comment #7
mglamanForgot to mark needs review.
Comment #8
damienmckennaClosed a duplicate: #2214033: Panelizer links missing on admin/structure/types page w Omega theme/subthemes
Comment #10
damienmckennaCommitted. Thanks for working it out, mglaman!