Panels Preview showing Content different from nodes
| Project: | Panels |
| Version: | 6.x-3.x-dev |
| Component: | Panel pages |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi,
I am playing with arguments in Panels3. I am trying to replace the node's layout with Panels (see #2 on this page http://drupal.org/node/631530)
Below is what I did:
1. Under "Basics", I set the path as "users/%user/story/%nodeid"
2. Under "Arguments", I set:
%user 1 User: ID
%nodeid 3 Node: ID
3. Under "Selection Rule": Node: ID is type "Story"
4. I then selected a layout and added content to the regions.
5. Hit "Preview", then enter user id and node id to get a preview of what the page may look like.
6. Everything looks fine on preview page.
When I go to the real page, for example /users/1/story/1, the page which is supposed to look like what I see in preview does not show but instead is staying as what it was before (should we call it default layout? it is the layout that drupal automatically show if not manipulated in anyway: title, content, comment form etc)
What did I do wrong here? did I miss something or is it a bug in Panels3? Any ideas?
BB

#1
Did you save it?
Note: This is not a bug report, nor is this critical.
#2
Also, another question: Are you using pathauto so that users/1/node/1 is an alias to node/1?
#3
Hi merlinofchaos,
Thank you for your quick reply. Yes I am using pathauto and users/1/node/1 is an alias to node/1. Is there any hope?
Thanks again and have a great weekend.
BB
#4
Ok, so pathauto is the issue here.
Internally, Drupal sees your alias as the original URL. i.e, user/1/node/1 is actually "node/1" which is why your panel is not working.
What you need to do is add variants to the 'node_view' panel, using selection criteria and the author relationship to get your data. That should work for you.
#5
Hi merlinofchaos,
Thank you so much!!
I am trying to understand:
add variants to the 'node_view' panel, using selection criteria and the author relationship to get your data.
What is "node_view" panel? Do you mean "system" type "node_view" which is shipped with Panels3? I took a look at that but then I couldnt figure out what you mean by "selection criteria" and where do we find "author relationship"? Is this documented somewhere? Please give me some more hints.
Thank you so much for your help.
BB
#6
Enable the node_view system page (sorry, I misspoke when I said panel).
Add a variant to the panel. Check that you need both contexts and selection criteria.
On the selection criteria, add the node type criteria that you want this to be for (or whatever else you want to use; if you use no selection criteria, all nodes will be displayed this way). Continue on to the context selection. On the relationships section, select, I think it's called author from node or similar, and add that. Then continue on to layout selection and population.
#7
Hellow merlinofchaos,
I wish you were here screaming with me in my living room!! It works!!! Thank you so much!! Panels is great!!! Thanks again =D
BB
#8
Automatically closed -- issue fixed for 2 weeks with no activity.