I am trying to set up a site which has forums and organic groups.
I want to set it up so the specific forum for a group appears only on that groups page.
By keeping tight control on group creation I can ensure that when a group is created I also create a forum for that group with the exact same name - this allows me to show the forum for that group on the group page by parsing the URL and then filtering by the group name to check it matches a forum name - then displaying that forum in the view on that groups page.. so far so good..
I have also added a group reference field to the forum topic content type, so topics show in the recent group content etc..
When adding a new forum topic, I'd like to automatically populate this field so the topic is assigned to the correct group, rather than give the user a choice, which they could then change. Hopefully this shouldn't be too hard as if a topic is added in the 'football' forum it will be the 'football' organic group that it should be associated with.
How do I go about doing this?
(if there is an easier way of doing the whole thing I'm open to suggestion there too! ie if the group name and forum name will always be the same anyway, it should make things easier all round, no?..)