Hi,
ref closed issue: http://drupal.org/node/131847
I was having trouble setting up a lot of parallel organic groups where I wanted to have the same set of 5 forums with the same descriptions. The only difference would be the forum's name appearing before the forum, and within the description.
eg
OG Group Energy
Energy - General Discussion
Open discussion group regarding Energy issues.
Energy - Research
etc etc research in Energy issues
and on
I wanted the distinct names for the forums so that if a person belonged to multiple groups, it might be easier in the long run to identify where notifications of new material came from etc. and not to have, for example, 6 forums called 'Research' show up in their list of recent posts.
So I changed the Default Forum Name field in og_forum_form_alter from a textfield to a textarea to take advantage of the description syntax added by Joshua Cohen (above). I tested for prefix '-' and a str_replace for a mini tag [OGFC], and used the $node->title as the forum name so that if the group creator follows this syntax:
-General Discussion,Open Discussion of [OGFC] Issues;-Research,Research in [OGFC] Issues etc
The forums are created using the organic group's name. This worked great for me, but my solution was pretty specific to my needs, and wouldn't work for multi-level containers (well, it would work, but all the sub-containers would still be named with the root container's name as opposed to the parent container's name). And even if I worked it right, I'd end up with a forum structure that would be re-using the root name throughout the hierarchy.
There's probably a much better solution to this, but here's my patch, anyway.
Btw thanks Joshua for the first patch it really helped.
| Comment | File | Size | Author |
|---|---|---|---|
| og_forum_def_forum.patch | 3.44 KB | j_prentiss |
Comments
Comment #1
j_prentiss commentededit: changing status to code needs work to indicate the patch attached. sorry.
Comment #2
Anonymous (not verified) commentedThanks , ill take a look at this feature request as soon as we have an official release of this module on drupal.org
Comment #3
Anonymous (not verified) commentedComment #4
Anonymous (not verified) commentedComment #5
Anonymous (not verified) commentedComment #6
vegantriathlete