When viewing a node belonging to an OG og_get_group_context() returns nicely the OG-node.

But when viewing an og vacab / taxonomy path the result of og_get_group_context() is empty.

I consider this a bug. Ie my block visibility test fails.

I want to create a patch if someone can tell me which way to go :) So suggestions are welcome.

Comments

amitaibu’s picture

Version: 6.x-1.0-rc1 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

There is a patch for OG's context system that I wrote, a good start would be trying your case with this patch.
#359291: Update Og's context to use the menu system

clemens.tolboom’s picture

Your patch looks elegant enough to try test it but it has not much to do with taxonomy. What we need for this issue is a way to tell og that the current taxonomy is also in an og group context. And that is just using og_set_group_context() :)

So in a way thanks for your reply.

amitaibu’s picture

Status: Postponed (maintainer needs more info) » Fixed

With #359291: Update Og's context to use the menu system it seems to work ok. So I mark this issue as fixed, as OG itself will take care of it.

clemens.tolboom’s picture

Status: Fixed » Postponed (maintainer needs more info)

In trying to understand your patch I do not see anything about path taxonomy/term. So how is this working on og_vacab?

amitaibu’s picture

Status: Postponed (maintainer needs more info) » Fixed

The relevant part in the patch is $object = menu_get_object(); that would bring back the node (as the path is node/123/og/vocab).

clemens.tolboom’s picture

Thanks for your feedback ... it gave me more insight to og and og_vocab. We had trouble in og_vocab not working on test but working on dev with same db content. Very weird.

Anyway og_vocab is working fine now :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.