Closed (fixed)
Project:
Organic Groups
Version:
5.x-4.0-rc9
Component:
og.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2007 at 11:34 UTC
Updated:
26 Oct 2007 at 20:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
karens commentedSee the related calendar issue at http://drupal.org/node/136968.
Comment #2
karens commentedI should maybe clarify that this needs to be an OG patch because it will make it possible to show *any* view that uses the gid as an argument as a tab on the OG home page without showing it other nodes.
Comment #3
moshe weitzman commentedI never knew about that hook. Interesting.
So the patch will only show tabs if the user is subscribed to the group. That seems like an artificial restriction. Perhaps we show tabs when this is true: og_is_group_type($node->type)? we'd have to do a node_load() to get the type.
Comment #4
moshe weitzman commentedAlso, we need to document the new token. If Views doesn't provide a place natively, perhaps we should form_alter the page url form element and add some text.
Comment #5
karens commentedI was trying to avoid the node_load(), but maybe that's still best. I guess the question is when *should* someone see the tab on the home page if they're not subscribed to the group? Can they even see the home page if they're not subscribed?
As to the documentation, not sure I understand where you would put documentation. Are you saying you want it to show up on the views edit page? If so, not quite sure how to get it in there.
Comment #6
moshe weitzman commentedThe group home page is always accessible to everyone. They are cries to make it different (http://drupal.org/node/83005), but thats where we are today. So similarly, these Views should be viewable by all. The nodes selected by the Views are already protected so I'm not worried about excessive disclosure. So yes, please resubmit the patch if you can with the node load. The node load is free anyway, because of the static cache in node_load(). The group node is node_loaded many times on a group page. Only he first call takes any time.
Yeah, I mean the Views edit form. I would think that a #description could be changed using hook_form_alter() just like any other form.
Comment #7
karens commentedHow about this then?
Comment #8
moshe weitzman commentedTested and committed. I just tweaked the wording a bit in form_alter. Thanks much, KarenS.
I have now released RC11 - http://drupal.org/node/183062. Thats running on groups.drupal.org. i hope others keep testing these release candidates as well.
Comment #9
(not verified) commented