Active
Project:
OG Extras
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 08:15 UTC
Updated:
29 Aug 2014 at 20:38 UTC
Jump to comment: Most recent
Comments
Comment #1
eojthebraveIn oder to do this you would need to override og-extras-group-links.tpl.php file and replace the $group_node_links variable with a new site of links. Which you can get by calling the
og_node_create_links()from the og module and using a different destination parameter. You can you see how we do it in this module, the code is inog_extras_node_links().Let me know if that works for you.
Comment #2
bnicoll commentedHaving a very similar issue - #1838822: Create content stays on same page
Any help would be much appreciated
Ben.
Comment #3
bnicoll commentedWas hoping you could clarify this a little bit - how I might be able to modify OG_Extras so that it will continue through to the newly created node after creating new content.
Thanks in advance.
Ben.
Comment #4
eojthebraveI started to look in to ways to make this configurable. Like a checkbox that would allow the site admin to choose if these links should redirect to the current page, the new page or the group page ... however the og_node_create_links() function has some issues.
#1848028: The $destination paramater for the og_node_create_links function is not used
Comment #5
bnicoll commentedThanks for e-mail - I'll get this patch in it's probably a little nicer than my commenting out workaround.
I had simply modified organic groups module directly. - og.module
Around line 3030 I simply commented out the ', + drupal_get_destination(), ' and it now works just fine.
// Build links.
$options = array(
'query' => array($field_name => $gid)// , + drupal_get_destination(),
);
Thanks,
Ben.
Comment #6
eojthebraveDid you get this sorted out? Want to provide a patch for this?
Comment #7
Patrick Danielsson commentedI can't seem to get this function to work, any ideas?
In og.module, my code looks like this, is there another way I can modidy to remove the destination?
Comment #8
tmctighe commentedNot really the best method, but this worked for me:
Comment #9
mygumbo commentedIn og_extras.module:
$content = og_node_create_links($group['group_type'], $group['gid'], OG_AUDIENCE_FIELD, NULL, $types);
Changing the 4th arg from NULL to FALSE will suppress the destination from the link.