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.
This patch adds a context placeholder form for entity ids, which when used with the 'panels veritable preview' patch allows an entity id to be manually supplied before a panel preview is generated.
We have been using it for the Weather Channel for several weeks now without issue.
Comment | File | Size | Author |
---|---|---|---|
ctools-arguments-entity-id-placeholder.patch | 3.81 KB | mrjmd |
Comments
Comment #1
mrjmd CreditAttribution: mrjmd commentedComment #2
Silicon.Valet CreditAttribution: Silicon.Valet commentedThis patch allows panels to provide previews on entity panel forms (or node view). It also replaces the behavior of the panels preview system from displaying preview inline to generating a preview "link" that can be opened independently (so as to preserve theme isolation and DOM fidelity. (When used with related patch)
Comment #3
DamienMcKenna@Silicon.Valet: Is the patch still in use? Any problems noted with it?
Comment #5
Silicon.Valet CreditAttribution: Silicon.Valet commentedPatch is still in use and we've been very happy with it.
Comment #6
japerryTested, and I like it. I'll look into getting the panels patch as well. Fixed!
Comment #8
maximpodorov CreditAttribution: maximpodorov commentedThis patch is obviously incomplete.
Comment #9
maximpodorov CreditAttribution: maximpodorov commentedI created a patch which fixes bugs introduced by this commit here: #2119357: Undefined index in ctools_argument_entity_id_context().
Comment #10
joelpittetPlease put the fixes to this patch here so the context is intact or as a follow-up issue that is linked to this issue.