When viewing the galleries the og_galleries module has information about the group the user is visiting. It should share this with og.module to enable everything that is dependent on this context.

In my particular case I use og_block_visibility and I want the blocks to stay visible when visiting the galleries. With this patch the global group context is set and my blocks stay visible. Is there any reason why this patch would be a bad idea?

CommentFileSizeAuthor
#2 og_galleries_2.patch1.91 KBjax
og_galleries_1.patch407 bytesjax

Comments

jax’s picture

I think that an even better approach would be to completely eliminate og_galleries_set/get_group_context() and in stead use og_get_set/group_context(). I'll cook up a patch and test.

jax’s picture

StatusFileSize
new1.91 KB

This seems to work. Please test it.

moshe weitzman’s picture

better still is to let og.module handle context. it will do so automatically if your modules follow an url convention like og/[whatever]/[group_nid]. so in this case, use an url like og/gallery/[nid]. this code is in og_theme() if someone cares to research.

karens’s picture

Status: Needs review » Closed (won't fix)

Old issue. This version is no longer being maintained. We are moving to Views Gallery for D6.