Drupal- Looking for code to print tweet to node-type.tpl.php -
i using tweet module in drupal 7. need code use printing tweet field in node-type.tpl.php. unfortunately have been unable find correct code make link appear in node. using contemplate found following code;
<?php echo $content['tweet']; ?> <?php echo $content['field_tweet']; ?> <?php echo render($content['tweet']); ?> <?php echo render($content['field_tweet']); ?> <?php print $node->content['body']['#object']->content['links']['tweet']['#theme'] ?> <?php print $node->content['body']['#object']->content['links']['tweet']['#attributes']['class'][1]?> <?php print $node->content['body']['#object']->content['links']['tweet']['#attributes']['class'][0]?> <?php print $node->content['body']['#object']->content['links']['tweet']['#links']['tweet_twitter']['html']?> <?php print $node->content['body']['#object']->content['links']['tweet']['#links']['tweet_twitter']['href']?> <?php print $node->content['body']['#object']->content['links']['tweet']['#links']['tweet_twitter']['title']?> <?php print $node->content['body']['#object']->content['links']['tweet']['#links']['tweet_twitter']['title']?>
but none of them work. have ideas?
the tweet module documentation states render in links section of node. add node--content-type-name.tpl.php want you're tweet links render:
<?php print render($content['links']); ?>
and clear cache.
Comments
Post a Comment