I am using Views module and Calendar module. When someone posts group's event in Calendar, this event is public, so Calendar displays events of all groups. It's ok, but I need a possibility to sort events: I mean user should be able to choose only his group's events.

Comments

zilla’s picture

if you are talking about calendars, follow this thread: http://drupal.org/node/279942#comment-913175

if you just want a simple block for upcoming events by group shown within a group's own page, then that's a much more simple thing to do...but it will be a list, not a calendar like what this other dude was after...

........................................................................
i love to waste time: http://twitter.com/passingnotes

Mavros Gatos’s picture

It's a part of solution. But I didn't mention, that there will be about 1000 groups, So, choosing from 1000-list will be difficult.

Is it possible to show only events of user's group be default?

zilla’s picture

you could easily show upcoming events in a list within each group - but if you mean that a user logs in and is recognized by UID and group associations and so by default see hsi group related events when viewing calendar, then you're going to need to hack up that module - there is likely some way to do this with the existing calendar views, but i suggest moving this question *away* from OG forum and into the *views* forum because what you're looking for is help defining the arguments (code) for the calendar view to recognize the user (when logged in) just as other views recognize a user already within a group (eg OG view for 'my unread' is unique to user *within* a group context, and encompasses all of that user's groups - you need something just like that but for calendar viewing...)

........................................................................
i love to waste time: http://twitter.com/passingnotes

kasiawaka’s picture

Based on some ideas I found all over the Drupal site, I created a solution that works for me: http://drupal.org/node/433768#comment-2332648

Kasia W

andybill’s picture

What I mean is, can a user have a calendar that shows all of the things in the calendars for all of the groups to which he/she belongs? Would be better still if a group admin would be able to see everything in their group's calendar, but able to mark some events as "invitation only" or "private" and only the invited group members would see them - so, for example, someone could be in a PHP-MySQL group, a PHP-Postgres group, and see all of the events for both: the PHP-MySQL group admin could see all of the events in that group, but none in the Postgres, and vice versa, and on top of that there could be PHP-MySQL calendar entries that only the admin and specifically invited individual users could see?

francis55’s picture

... but doesn't seem to have the result expected.
I have a block containing a Calendar, provided by a View. I want to show only the events coming from groups that the user belongs to.
Editing the view, I saw a filter that looked promising: Organic groups: Group member, so I set Is the logged in user=True
But the calendar still showed events from groups I don't belong to.
(I believe the filter appears because there's a relationship with Organic groups: Group node (post))
Tried adding another relationship + filter: Organic groups: Group node (member), but events still don't take group membership into account
(2 weeks later)
Trying again with other content types from Drupal commons (discussions , etc), now I get no content at all, not even posts user's groups

Gabriel_ARG’s picture

I'm stuck with the same thing... followed a couple of tutorials and all my events are not being displayed. Not even the ones that aren't related to a group...