I'm theming the output of my node.tpl.php and want to insert the com tag form.
I took this code

 $output=community_tags_node_view($node, TRUE);
print $output; 

but now all tags are showd twice. The text from the submit-button is shown twice, too.
Can someone tell me, what i did wrong? Thanks!

Comments

entrigan’s picture

I just ran through a vanilla install, with community tags 1.x-dev and was unable to recreate the problem. Can you give more details? If you are using devel, maybe do a dpm(community_tags_node_view($node, TRUE)); to see what exactly is getting generated, and thereby isolate the problem to either com tags or your theme.

witzel’s picture

dpm?

valderama’s picture

same problem..

SOLVED: my solution is to print the community tags form with in node.tpl.php with that line

print $node->content['community_tags']['#value'];

entrigan’s picture

@valderama that works.

@witzel: Do you have your community tags setting to display inline? try switching this setting to block, and then add the code into your tipplephip

chaps2’s picture

Status: Active » Fixed

Solution by @valderama works.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.