Closed (fixed)
Project:
Tweet Button
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 16:14 UTC
Updated:
11 Jul 2011 at 22:12 UTC
I have some content-types and nodes custom styled with templates and some do not employ node links. Is the button printable in custom themes or will it only appear in node links?
Comments
Comment #1
ycwjjjj commentedI would also look for the code for template for contemplate module.
I tried to add the code below in my tpl.php used by contemplate module. It seems working but not sure it is the proper way or not.
print $node->content['tweetbutton']['#children'];Comment #2
upupax commentedThis work for me, but this duplicate the tweetbutton.
I tried to write some preprocess code, but I still have two buttons.
Someone can help me?
and then in my node.tpl.php
Comment #3
chia commentedor you can do
Comment #5
Rosamunda commentedjust subscribing! :)
edit: I´m using contemplate too, and it worked ok with
<?php print $node->content['tweetbutton']['#value'] ?>Comment #6
gthing commentedI am using
theme('tweetbutton_display', $node);in my node.tpl.php but it is not showing up.I have enabled the link to show up in my content and my teaser, and if I allow it to show up in my links section it does show up there as expected.
This doesn't work either:
print $node->content['tweetbutton']['#value']Comment #7
gthing commentedMy bad, I had to do
print theme('tweetbutton_display', $node);