Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

Bitten by the Twitterbug...

Filed Under:

It was just a matter of time, wasn't it...

Ok, I too, have finally succumbed to the 'twitterbug' and have created my own account (the id 'tomster' was taken already, guess I really was too late for that one...)

To complete my conversion I've created a quick-and-dirty portlet that display my latest entries... uhm... 'twitters'... Just create a 'Page Template' named 'portlet_twitter' in your 'plone_skin/custom' folder and paste this into the ZMI:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" i18n:domain="plone">
<body>
    <dl metal:define-macro="portlet" class="portlet" id="twitter_div">
        <dt class="portletHeader"><a class="twitter-title" href="http://twitter.com/TWITTERID/">Twitter updates</a></dt>

        <dd class="portletItem">
            <ul style="margin-left: 0; list-style-type: none; list-style-image: none;" id="twitter_update_list"></ul><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js">
</script> <script text="text/javascript" src="http://twitter.com/statuses/user_timeline/TWITTERID.json?callback=twitterCallback2&amp;count=5" type="text/javascript">
</script>
        </dd>
    </dl>
</body>
</html>

You will (obviously) need to replace TWITTERID with your actual twitter id, of course. You can then refer to it with the expression 'here/portlet_twitter/macros/portlet' in the root properties of your site. This will work up to Plone 2.5.x.

A nice side effect of it using Javascript is that I won't even have to touch my caching setup in order to have live updates on my site.

I'll see where this will take me. I'm viewing it primarily as lowering the threshold to posting tiny little bits that I find interesting. (So expect lots of stuff around Python, Zope and Plone...)

Great article

Posted by Anonymous User at Apr 08, 2010 07:45 PM

Thanks for this, i enjoy reading it

life

Posted by Anonymous User at Jun 25, 2010 08:49 AM

But for Gucci nothing is ever quite Gucci bags as simple as it first appears. The show set alone, a concrete and metallic Gucci handbags structure looking like an underground parking garage, held that sense of menace that Prada does so well. Gucci Shoes tiffany jewelry Ed Hardy

ed hardy swimsuit

Posted by Anonymous User at Jul 22, 2010 12:46 PM

ed hardy clothing ed hardy t shirts ed hardy swimwear ed hardy belts ed hardy sunglasses ed hardy caps ed hardy swimsuit ed hardy clothing ed hardy t shirts ed hardy swimwear ed hardy belts ed hardy hats ed hardy sunglasses ed hardy watches

twitterbug

Posted by Anonymous User at Sep 03, 2010 02:01 PM

thanks for posting the solution. Ornela from fatcow review | ipage review | cheap hosting