Views 7.x-3.0RC1
Panels 7-3.0-alpha3
Objective Summary: Create a view of nodes (View_A) and create View Pane and Context from View_A. Create another view (View_B) that takes a node ID as argument and create a View Pane from View_B. Display View_A with pager 1 and View_B in a panel that uses Context from View_A.
Note: I used this feature in 6.x-2 and it worked perfectly. After migrating to 7.x-3 , I can't get it to work. I suppose this is an issue with views as the context is available in panel but not in View_B pane
Repeatable: Always
Steps to repeat:
1. Create a view of nodes (View_A) and create View Pane and Context from View_A
2. Create another view (View_B).
- Add contextual filter Content:Nid
3. Create View Pane from View_B
- Set "Argument input" -> Content: Nid source to Context and Required Context to Content ID
3. Create panel page
- Add context of View_A
- Add relationship Node from View_A and "Row Number" 1
- Add Content View_A view pane
- Add Content View_B view pane
Expected Results:
As per my 6.x implementation, I should see View_B listed in view panes list of the panel page adding content section. When adding the pane, the settings should have Node:Nid set to "Node from View_A"
Now my panel page should show the View_A nodes one by one and related content of View_B.
Actual Results:
View_B is not listed in view panes list of the panel page adding content section so I can not add my View_B pane. If I make the View_B pane argument input optional, then the pane shows up in the list but does not propose the setting "Node from View_A". So it appears to me that the context in the view pane is the issue. (I am also using the same context for custom panes and it works fine.)
Comment | File | Size | Author |
---|---|---|---|
#8 | 1263480-node.patch | 418 bytes | andypost |
#3 | 1263480-context-mixup.patch | 2.43 KB | merlinofchaos |
Comments
Comment #1
dawehnerThis seems to be a bug of ctools not of views.
Comment #2
thill_ CreditAttribution: thill_ commentedSubscribe, ran into this today on a complicated page
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThis patch should fix it.
Comment #4
thill_ CreditAttribution: thill_ commentedThis patch along with #1274720: Node contexts created by relationships from Views Context cannot be passed to a Views Pane. seemed to solve my issue, I am not sure which one did it as i had both applied at the same time.
I will be testing/building some additional pages and will report back any further findings.
Thank you
Comment #5
francois o CreditAttribution: francois o commentedI applied the patch in #3. It fixed the problem of not showing the view in the view panes list of the panel page.
Now I'm facing a problem that may not be related but want to share here to make sure.
View_A is configured to show one node per page.
View_B displays the content related to View_A node (Content:ID acquired through the "node from view" context)
For the first node of the view this works well, but when I switch to the second node of View_A, View_B displays empty. This was working fine in D6, the context was passig the change in nodeID properly to the second view.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commented#5: For the second part, can you please file a new issue with reproduction instructions? That sounds interesting and needs to be investigated.
This patch is committed and pushed.
Comment #7
andypostthis should be removed
Comment #8
andypostPlease remove this dependency
Comment #9
francois o CreditAttribution: francois o commentedI opened http://drupal.org/node/1298660 for issue in #5
Comment #10
Cyberwolf CreditAttribution: Cyberwolf commentedSubscribing.
Comment #11
andypostAlready commited