Community

Events not displaying in group calendar (sort of) - URL argument mystery

Hi Folks,

I'm experiencing a strange and wonderful dilemma with my group calendaring. I'm using d7 with og7.

I have established a set of groups and a calendar view according to various tutorials and have been able to add users and publish content to the groups, as well as create events in a calendar and create a calendar tab for each of the groups.

So far, so good.

Where I'm experiencing the problem is trying to display events in the group calendar. All of the relationships and contextual filters are set according to tutorials, but the events don't show.

Here's the mystery...

A typical url for a group page is http://mysite.com/node/8/ and the calendar for the group is http://mysite.com/node/8/calendar, but the calendar is blank. Now, if I go to http://mysite.com/node/1/calendar, the events for 'group 8' appear.

So, as it turns out, the group that sits at http://mysite.com/node/8/ was the first group I created, but the 8th piece of content I created. The pattern holds for all the other groups, so that the group at http://mysite.com/node/10/ has its events appear at http://mysite.com/node/3/calendar.

Of course, the content item at http://mysite.com/node/3/ is the 3rd item I added to the site and entirely unrelated to the events on the calendar. The breadcrumbs menu show that I am at item 3, unsurprisingly.

There seems to be a misunderstanding with the ID's. When pointing to our group page, drupal is reading the argument as the entity ID, but when pointing to the group calendar, it's reading the argument as the group ID, or something like that!

Any thoughts?

Thanks for your help,
Lewis

Comments

Panels?

As mentioned on http://drupal.org/node/1041198, the preferred way to display Organic Groups is using Panels. Panels allows you to pass the group id as part of the Panel context. As you mentioned, the group id and node id are different. If you are not using Panels, I am not sure if it is possible to pass in the proper id.

Okay. Thanks for the tip. I

Okay. Thanks for the tip.

I suppose I was hoping 'preferred' didn't actually mean 'only'!

Thanks again, and off I go to Panels.

Lewis