PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Drupal tweetmeme content type not working

February10

I had installed tweetmeme on my drupal website, it was working great on the content type ‘page’ but not on my customized content types like news and blog.

I spend hours finding the solution, going through all the complicated scenarios, cursing drupal, hating life etc and then as usual the solution was very easy and it hit in a second showing me the light in the dark tunnel and i declare my love for drupal again. Ok ok enough of gibberish the solution is mentioned below.

Contemplate was the answer. I had used contemplate for theming purposes, but after tweetmeme we have to add

<?php print $node->content['tweetmeme']['#value'] ?>

in the contemplate box.

Then make sure the website is not in maintenance mode, and voila you can see the beautiful green box saying ‘retweet’ :)

posted under Drupal

Email will not be published

Website example

Your Comment:

 

2,885 spam comments
blocked by
Akismet