Hoping someone can help as I think I'm close to having this work.
I cloned the Calendar view and have changed the path to be "group/%/calendar" and added an additional argument "Organic groups:Groups" with the default argument being php code:
$group_node = og_set_group_context();
return $group_node->nid;In the filters section I then have "Organic groups: OG: Posts in current group".
All of this actually gives me the correct SQL query (tested by running the query manually with a known group_nid). I'm sure that my issue is how to pass the group node id from the argument section to the filters section?
Any help would be greatly appreciated.
(P.S. I'm aware of the og_calendar module, I just don't like the way it (and event module) present the input from the user).
Comments
Comment #1
dawehnerSometimes there is some help text unter the form :)
Comment #2
Layne commentedThanks for your help dereine. As I dig deeper I believe my problem is that the path I've set for the Calendar view doesn't actually belong to a group so it is always returning "og_ancestry.group_nid = 0". So I guess I'll have to figure something else out. Your tip was very helpful though. Thanks!
Comment #3
kasiawaka commentedHi there,
I believe my solution may help you: http://drupal.org/node/433768#comment-2332648
Comment #4
merlinofchaos commentedI realize this may not technically be fixed but I think we in the Views queue have offered all we can; no point in leaving the issue open, unless more is needed.