Posted by jpwolf00 on April 13, 2011 at 2:11pm
I am trying to replicate the functionality of ideatorrent with common drupal modules and I have almost got it nailed but I am stuck with a problem. I'm using organic groups to represent each idea (problem) submitted and each solution as a post within that group. I would like to force (or at least redirect) the user to the create content form for the idea (problem) already specified for the group just created.
I have found a way to create a link to content in the current group using a block with this code
<?php $group_title = og_get_group_context()->title; ?>
<?php $group_nid = og_get_group_context()->nid; ?>
<div class="user-input-link"><a href="?q=node/add/solution/gids[]=<?php print $group_nid; ?>
</div>
I have not figured out how to have an additional group content be required to be created when creating a group.
Any help is appreciated.