Hi,

using:
context 6.x-2.0-beta7
spaces 6.x-2.0-beta6
views 6.x-2.7

I would like to create a dashboard views-page-view that shows the organic group's information (description, body, cck-fields). However, I can't figure out how to do this.
I create a view with this filter:
- Node: Type = Group node
- Spaces: Node in current space all
Tried a relationship: Organic groups: Group node (post); that doesn't work.

I guess that the group node is not inside the space, so it is filtered out? How can I get this information?

The workaround I can think of would be to create a new content type "dashboard description" which is posted in the group and then filtered. However, this is not very elegant and user-friendly.

Am I missing something, any hints? regards.

Comments

avdp’s picture

Title: Bring in group node body in views » Bring in group node description in views (group space)
mikemccaffrey’s picture

Category: support » feature

I second this request. And since og_spaces is keeping track of what the group home page is, why not have it give the option to display either the og description field or the node body on top of whatever the space home page is? Besides creating a block, I'm not sure what the best way to implement this would be though.

avdp’s picture

Placing this is my page.tpl.php works (copied from space-og.module):
Not sure if it's ok to do it like this, I'm pretty new at custom theming.

 $space = spaces_get_space();
 $gid = $space->sid;
 $node = node_load($gid);
 print $node->og_description; 
print $node->body;
MichaelP’s picture

I made a view (block display) with the fields I wish to see from the og node.

Filter is set to node type = Group. Ed: Not necessary as the argument below gets the specific group node by NID

Set an argument as Node: NID

Set: Action to take if argument is not present: Provide Default Argument as PHP Code.

Set this as PHP code (thanks to avdp):

$space = spaces_get_space();
$gid = $space->sid;
return ($gid);

Set Validator Options as Group Node, Argument Type Node ID.

Hope this helps.

Michael.

redben’s picture

Wonderful, i'll try it out ! just posted more or less the same issue on og (asking for views filter: current group)

avdp’s picture

hey, great!
It works for me. Better than greating a custom block.

avdp’s picture

Status: Active » Fixed
mikemccaffrey’s picture

Status: Fixed » Active

Glad that this workaround solved the problem for some sites, but it is still just a workaround.

It seems like og_spaces should 1) support a standard option to display the node body on top of whatever is designated the home page, and 2) provide the default og view as a home page option.

Enabling og_spaces and features should add additional functionality to a site, and (if at all possible) not undermine the default behavior of og and existing groups.

Just a thought...

Mike

socialnicheguru’s picture

interested in this

redben’s picture

Cross posting related issue #593824: Displaying group as node