Displaying group as node

mani.atico - October 2, 2009 - 02:54
Project:Spaces
Version:6.x-2.0-beta6
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

Hi,

How do I set a group's home to the original node view (the one that is shown when og spaces is disabled and when no features are used).

thanks.

#1

mikemccaffrey - November 7, 2009 - 05:20

I believe that the short answer is that you can't. When og_spaces is installed, it looks for the feature which is set to be the group home page. If no feature is set, it brings the user to the features page and prompts them to select a default feature, or gives them an access denied error if they don't have permission to select features for the space.

In my opinion this is a tad overly aggressive stance to take. For one, upon installation on an existing site, og_spaces essentially disables the viewing of all groups by the public until their default home page feature is set. Secondly, it apparently takes away the standard functionality of being able to view the node content and accessing the node tabs, without providing any alternative means of doing so without writing custom code.

Personally, I'd prefer that the group just default to the node if no specific home feature is selected. Is there any reason that I am not seeing why this wouldn't work?

Thanks!

Mike

#2

mani.atico - November 9, 2009 - 17:49

I've been able to show the group's original content using views or cutom code (as mikemccaffrey mentioned), but I agree that there should be an option, maybe a pre-set feature, which enables the standard display of a group.

#3

redben - December 1, 2009 - 10:09

+1. Couldn't agree more. Spaces og should allow "group node view" as default group homepage

#4

geshan - December 3, 2009 - 08:04

Yes it should allow that.

#5

SocialNicheGuru - December 3, 2009 - 19:03

I have been searching for this too.

i tried using panels.

created a panel
mygrouphome/!nid
created a menu item
Home pointing to mygrouphome in Features menu

I created a homepage feature from this
I can click on the icon but no page comes up.

I don't know how to pass !nid to the panel page automatically.

Again, we can't use node/%nid override for the reasons mentioned above.

Thanks for any insight.

#6

SocialNicheGuru - December 3, 2009 - 20:45

This also holds for user and having the user/% page be accessible as the homepage for space-user.

#7

redben - December 4, 2009 - 12:57
Component:User interface» Code
Category:support request» feature request
Priority:normal» critical

Maybe this should be a (critical?) feature request, since it seems impossible right now ?

#8

redben - December 4, 2009 - 13:08

There is a workaround on issue #632200: Bring in group node description in views (group space) comment #3 ,
One could create a feature and add custom code that defines a menu callback. In the menu callback you can use the code snippet :

$space = spaces_get_space();
$gid = $space->sid;
$node = node_load($gid);
return theme('node', $node)

Haven't tried it myself but should work

 
 

Drupal is a registered trademark of Dries Buytaert.