[support] Panels, views and arguments

Joel Willers joel.willers at sigler.com
Wed Feb 16 21:09:10 UTC 2011


The problem is that there isn’t a Node Reference from the Parent back to B.  I was considering using Corresponding Node References to make them all linked to each other, but it seems like there should be a more elegant solution.  Thanks for the tip, though.

Joel

 

From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Carl Wiedemann
Sent: Wednesday, February 16, 2011 2:51 PM
To: support at drupal.org
Subject: Re: [support] Panels, views and arguments

 

You can probably get what you want using Views relationships. You should be able to create two relationships to get the reference from A->Parent, and then from Parent->B.

 

See http://gotdrupal.com/videos/drupal-views-relationships for an introduction.



On Wed, Feb 16, 2011 at 1:45 PM, Joel Willers <joel.willers at sigler.com> wrote:

I thought I had this one beat, but I’m afraid I can’t get it to work.  I am creating a page that have a complex data structure.  There is a parent content type and two children content types.  While viewing child A, I want to be able to link have the nid of Child B.  

 

I created a context view that, when passed the argument of the nid of child A, it returns the nid of the parent.  I then created a view that I inserted into a panel, trying to use that context view as an argument, that, when passed the parent’s nid, returns the nid of the child B.  

 

This gave me no results.  

 

There seems to be a difference between the panel’s arguments and views contexts.  Any suggestions?  

 

Joel


--
[ Drupal support list | http://lists.drupal.org/ ]

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110216/332f0809/attachment.html 


More information about the support mailing list