Hello, I'm having an small issue, when the audience propagates then when the users see a post in full view it's within the lowest gid group and not the first group where I created the post. Is there a way to solve this? Thank you!

Comments

amitaibu’s picture

Component: Miscellaneous » Code
Status: Active » Postponed (maintainer needs more info)

I'm not sure I understand. When content propagates then it belongs to several groups. What do you mean it's by the lowest gid (in the OG subgroups block maybe?)

daniorama’s picture

Hello, sorry I thought that because of the way I was visiting the groups, now I've read the code of og and what it does is using the context of the last visited group. The thing about the gid was just a confusion from me, sorry.

The big problem is that if the user is in the parent group, clicking the link to a post in a child group will never set the context to the child group. I think that when the context propagates the child context should be the preferred context to use (for other people could be the parents) I think the best way to solve this should be override og_set_theme function, so following the propagation rule, it sets the context to its child (or its parent)

In the og code its said that this could be override but it's not explained how. Any ideas?

daniorama’s picture

There is a bit more information here http://drupal.org/node/323425

amitaibu’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)