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
Comment #1
avdp commentedComment #2
mikemccaffreyI 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.
Comment #3
avdp commentedPlacing 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.
Comment #4
MichaelP commentedI 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 NIDSet 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):
Set Validator Options as Group Node, Argument Type Node ID.
Hope this helps.
Michael.
Comment #5
redben commentedWonderful, i'll try it out ! just posted more or less the same issue on og (asking for views filter: current group)
Comment #6
avdp commentedhey, great!
It works for me. Better than greating a custom block.
Comment #7
avdp commentedComment #8
mikemccaffreyGlad 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
Comment #9
socialnicheguru commentedinterested in this
Comment #10
redben commentedCross posting related issue #593824: Displaying group as node