I think I've ran into a bug that occurs when you apply more then 1 ctools_context view as relation to a panel page variant.
Here's the steps that caused the error for me:
1: Create a variant for the Node page.
2: Add a relationship that points to a ctools view display (ctools_context_1).
3: Add a relationship that loads a node based on the 1st row returned by the ctools_context_1 view-display.
4: Add a relationship that points to another ctools view display (ctools_context_2). (In my case, this display originates at the same view as the first one, I don't know if this is relevant for this bug).
5: Add a relationship that loads a node based on the 1st row returned by the ctools_context_2 view-display.
The resulting settings (when exporting the panel variant):
'relationships' => array(
...
3 => array(
'identifier' => 'View: Programme Chapters: Child NIDs',
'keyword' => 'view_get_children',
'name' => 'view_from_argument:programme_chapters-ctools_context_2',
'context' => array(
0 => 'argument_entity_id:node_1',
),
'id' => 1,
),
4 => array(
'identifier' => 'Child of Node being Viewed',
'keyword' => 'child',
'name' => 'node_from_view',
'row' => '1',
'context' => 'relationship_view_from_argument:programme_chapters-ctools_context_1_1',
'id' => 2,
),
),
As you can see, the "child of node being viewed" relationship, receives a context of pointing towards ctools_context_1_1, instead of ctools_context_2_1.
I double-checked and tripple-checked, but I really did configure panels to load a "node_from_view" from "view_get_children", so I think somewhere, the context get's stored incorrectly.
Comments
Comment #1
ruben_vreeken commentedFound an additional issue:
- When "reordering" the variants created through the steps in my orignal post, the 3rd and 4th end up getting completely removed.
Comment #2
japerryDrupal 7 is no longer supported, closing.