Closed (fixed)
Project:
OG Vocabulary
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2009 at 09:41 UTC
Updated:
1 Apr 2009 at 09:10 UTC
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
Comment #1
amitaibuThere 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
Comment #2
clemens.tolboomYour 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.
Comment #3
amitaibuWith #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.
Comment #4
clemens.tolboomIn trying to understand your patch I do not see anything about path
taxonomy/term. So how is this working on og_vacab?Comment #5
amitaibuThe relevant part in the patch is
$object = menu_get_object();that would bring back the node (as the path is node/123/og/vocab).Comment #6
clemens.tolboomThanks 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 :)