Closed (fixed)
Project:
Community Tags
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 15:14 UTC
Updated:
31 Mar 2011 at 19:31 UTC
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
Comment #1
entrigan commentedI 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.
Comment #2
witzel commenteddpm?
Comment #3
valderama commentedsame 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'];
Comment #4
entrigan commented@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
Comment #5
chaps2 commentedSolution by @valderama works.