Create a panel with related group content based on a view I'm using groups (Drupal 7) and have set up panels to show related content for each group. So that if I look at a particular group node it also shows associated group news items, members, etc. The main content is the group body field. 

I now want to show a view that displays a list of related content (group messages) for a group as the main content. This should also show the associated group members and news items in a related pane, as it does in the main group panel. I can't see how I can relate the group to the view. It is straightforward to relate the view to the group but not vice versa. 

Is it possible to relate the group to the view based on an argument in the path? When I create a new panel the contextual options are all about the node being viewed or the group, but nothing for views or the path. 

Or alternatively, is it possible to add a variant to the main group panel page that shows the view I want to display instead of the group body field? How could I create a different context for this? Would it be possible to do it using a path?

Many thanks in advance,

Ben
Is it possible to relate the group to the view based on an argument in the path?


Yes, it is. In the view, in the contextual filters select the radio button "Provide default value", there you can decide which kind of field you want to give. If you want to get the path you should select "Row value from url" and then choose the "path component" (The numbering starts from 1, e.g. on the page admin/structure/types, the 3rd path component is "types".)

I hope this helps you.