One of the biggest WTF issues I've had with Mini panels is that you can't use Required contexts unless you are using the Mini panel via a Page manager page... which I didn't even know that was the issue until I started digging.
I understand the reason for this, as it's how the Contexts are provided, but it would be easy enough for other modules (custom and contrib) to build up the provided data for the Contexts themselves.
My use case is a Node display, I personally use Display suite, but I have the need for Mini panels for a more complex block of context aware data than the DS Dynamic field is capable of handling (DS Dynamic field only handles a single item), but the Node context can only be provided if I was using Page manager for the Node display.
Simple fix, add a drupal_alter() in the hook_block_view(), so that my own custom module can build the ctools_context object for the node.
Patch in comment #1.
Comment | File | Size | Author |
---|---|---|---|
#1 | panels_mini_block_contexts_alter-2172889-1.patch | 642 bytes | Deciphered |
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedExample use:
Comment #2
realityloopworks as advertised
Comment #3
japerryMore alters are good. Committed