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
2 Comments to

“Drupal tweetmeme content type not working”

  1. On September 4th, 2010 at 1:43 am Amber Slovak Says:

    Great post! I have been reading your website for awhile now and wanted to stop by to say hi. You have some pretty good info here! A friend of mine recently started a forum/social network that you should come chat at – http://www.shareworx.com – it would be great to have you there. Keep it up!

  2. On September 4th, 2010 at 7:24 am admin Says:

    Thanks for inviting me, will surely try but you know how it is .. life is always short on time!

    If you know any PHP / Drupal programmers who are interested in any freelancing work do let me know.

Email will not be published

Website example

Your Comment:

 

12,829 spam comments
blocked by
Akismet