Closed (fixed)
Project:
OG Vocabulary
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2012 at 20:19 UTC
Updated:
7 Oct 2012 at 10:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuHi Richard,
I better get more familiar with openScholar! :)
That's indeed a little problem, as Drupal doesn't let us easily expose metadata about the menu item. We might need to pass another variable as a page argument, just to check it exists. All solutions I can think of right now are a little hackish :/
Can you give me an example of how a URL for a "Group" tab looks like?
Comment #2
rbrandon commentedWe don't rely on any specific URL pattern but rather on the active "space". We use spaces_og integration so if your forms also integrated with spaces_og that would work for us.
ex.
If spaces integration is not available we would normally write a code snippet that gets the current group id and then passes it directly to the form.
-Richard
Comment #3
amitaibuI think a better integration would be with OG-context
Comment #4
amitaibuFirst stab, untested yet.
Comment #5
amitaibuCorrect status, to enable testbot.
Comment #6
amitaibuIt runs locally. Testbot will fail here, as CTools patch wasn't committed yet. Committed.
Comment #8
amitaibuRe-opening as calling og_context() idea was wrong, we can rely on
group/...also if spaces and PURL is involved as menu_get_item() return the path without the PURL prefix.Comment #9
amitaibuCommitted.