Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello i seem to be struggling to add the group name a node belongs to in the node.tpl. Ive used devel and ive added
<?php print render($content['og_group_ref']);
?>
but with no success. Could anyone tell me the best way to display the group name?
Thanks
Comments
Comment #1
fadgadget CreditAttribution: fadgadget commentedI think the answer could be in this post.
http://drupal.stackexchange.com/questions/23461/how-can-i-get-the-group-...
I think its suggesting adding this code to my node.tpl
I just get a wsod when i add it wrapped in php tags. Could anyone assist me in printing the group name a node belongs to on the node?
thanks
Comment #2
fadgadget CreditAttribution: fadgadget commentedhello im still trying to achieve this. Does anyone know how to print the group in the node tpl?
thanks
Comment #3
fadgadget CreditAttribution: fadgadget commentedseems my first attemp works. dunno why it wasnt till now. dont mind me.