Displaying group fields with a view embedded in a panel

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
lewis.jones@reap.asn.au's picture

Hi Folks,

Apologies if this is not the right place to post. Please let me know where to go.

I run an organization across university campuses with local groups on each campus and I'm developing a drupal site with organic groups to connect everybody together. Using D7, OG7, and Views 3.

Each campus is an OG group and has their own page. On each page, there will be a fixed header with information about the university, e.g. photo, motto, location, etc., and then group related content, e.g. articles, events, member list, etc.

I've created a content type to store the university information with all the extra fields I need.

The main body of the group pages seems to be working fine, with the right information displaying for the right groups, but the header isn't working.

I have created a view (as a content pane) with the subset of the university content type fields that I want for the header and then inserted that pane into the panel for the group pages.

The result is that the fields are rendered in the pane, but the content is from the wrong university.

What seem to be the relevant settings are as follows:
View (content pane):
Relationships: OG membership: OG membership from Node
Contextual Filters: (OG membership from node) OG membership: OG group gid
Argument Input: From context: OG group ID
Format: Show: Fields

Panels:
Selection Rules: OG: Node is an OG group
Contexts: Relationships: OG group from node

This setup works perfectly for displaying articles with the groups audience set to the relevant group, but not for displaying the group fields themselves. The prepackaged views for listing group members and the 'create content links' work.

Any suggestions?

Thanks,
Lewis