Posted by ruess on December 5, 2011 at 3:39am
This is a question pertaining to OG 7.
I am trying to show a pane (using Views and Panels) which will include fields from the user profile of the Group Manager on a organic groups page. I am trying to determine the best way to filter only the OG manager and not any one else from the group (currently everyone appears in the block).
I've tried many different relationships in Views 3 and various filters based upon those relationships, but so far nothing :(
Any hints?
Thanks!
kevin
Comments
Create a content view.Under
Create a content view.
Under Filter Criteria add the content type you are using for your group type.
Under Contextual Filters add "Content: Nid"
Within the settings for the Content: Nid filter, select Provide default value and set it to "Content ID from URL".
Under Relationships add "Content: Author"
Now you can add user fields such as the user name, signature and so on.
You can also display the fields without Views by pulling in the group author information into the panel variant that you are using to display your groups.
Go to the panel variant you are using for groups and click on the Context tab.
Now just add the relationship "User from Node (on node.node_author)"
You might find that in the dropdown list there are more than one to chose from and if you try to add one it may tell you Invalid context type. I'm not sure why this happens but if you try each of the selections you will eventually find the one that works.
Once you have done that click on the content tab and add some content to the pane. You should now have a User tab and User (tokens) tab to chose from. You now have access to all of the group author profile fields without Views.