Closed (fixed)
Project:
Spaces
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 02:54 UTC
Updated:
11 Aug 2010 at 13:30 UTC
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.
Comments
Comment #1
mikemccaffreyI 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
Comment #2
mani.atico commentedI'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.
Comment #3
redben commented+1. Couldn't agree more. Spaces og should allow "group node view" as default group homepage
Comment #4
geshan commentedYes it should allow that.
Comment #5
socialnicheguru commentedI 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.
EDIT:
In views you can specify a default value defined by php for an argument. But in panels you cannot so I don't think this approach will work unless someone can share how to set a default value.
Comment #6
socialnicheguru commentedThis also holds for user and having the user/% page be accessible as the homepage for space-user.
Comment #7
redben commentedMaybe this should be a (critical?) feature request, since it seems impossible right now ?
Comment #8
redben commentedThere 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 :
Haven't tried it myself but should work
Comment #9
socialnicheguru commented@redben
how do i create a menu callback?
If I were to override node/$gid with a panel, would the node referred to by the menu callback be overwritten?
Edit: I don't know too much about the menu system but I thought i'd start
Comment #10
redben commentedI think this might work if you add it to as feature module
and in your myfeaturemodule.info add
So that spaces gives you the opportunity to choose this as the default space feature
Again, i haven't tried it myself but i think this should be a good starting point
Comment #11
hefox commentedgoing to need to also implement the menu hook (pages == myfeaturedmodule)
anyhow to update the
menu set active item sets it so tabs etc. show up
$gid cause things can still acces the front page
in the module.features.inc
in module.defaults.inc
Comment #12
hefox commentedhttp://github.com/hefox/spacesoghome put the functionality mentioned into it's own feature; I believe it's working, but as I originally had it in a different module there may be some reminiscent of that.
Comment #13
socialnicheguru commented@hefox, Ok I feel a little silly, but once I enable this, what do I do? How do I select the homepage. and does this only work for groups as opposed to users in space_user (I assume it only works for groups)?
Edits: Sometimes I should have a beer instead of posting comments.
Enable feature
goto group
select feature
have fun
Edit: This shows a list of nodes instead of the node page itself. Did I miss something?
Comment #14
hefox commentedThat is the node, right? Visit the node itself and see if there's a difference. Should also be edit tab for group node, etc. I'm not sure what exactly og is doing, but it embeds a view (set via og settings) in the node; default view is listing of nodes for that group.
I believe homepage also needs to be set to "Home" for it to work.
Comment #15
socialnicheguru commentedIs there anyway to modify so that 'front' would point to a panel page that I setup that takes the current gid as an argument?
For example, front points to mygrouphomepage/$gid
I tried this below and it doesn't seem to work
Comment #16
hefox commentedThere's some work in the 3x branch to add in support for node/% panel override (
http://github.com/hefox/spacesoghome/blob/spaces-3.x/spacesoghome.module) , but there's a conflict in general with node/% panel override and spaces/purl (basically panels doesn't call node_view with $page = 1) .
Add in node_page_view($node); in page_manager/lugins/tasks/node_view.inc before the first return and it'll should work.
See #723570: Conflict between panels node/% override and spaces router activation
Comment #17
jmiccolis commentedIn Spaces 3.x we don't make the group node so difficult to get to. Setting this to fixed, If you've got specific questions about what's going on in 3.x please open a new ticket.