Saturday, 29 July 2006
Simpify for Roller Blogs 
« YouTube Beats MySpace | Main | Ruby Library for Simpy API »
In the past I've provided information how to add "Simpify" functionality to your blog. Here I provided instructions, code, and images for Blogger and Blogspot, Wordpress, Movable Type and TypePad, and for Blojsom.
Thanks to this blog, we now have the information for adding "Simpify" functionality to blogs powered by Roller, the blogging software used by Sun, that now lives under the Apache Software Foundation roof.
To add "Simpify" button to each post on my a (J)Roller blog, I modified the (J)Roller template (the _day one) and added the 3 little icons that let people save the post to either Simpy, or del.icio.us, or digg it. To do that, I added a (Velocity) macro:
#macro ( entryButtons $entry )
// NOTE: you will want to change this URL
#set ( $IMAGES = "http://jroller.com/resources/o/otis" )
#set ( $entryURL = "$absBaseURL/page/$userName?anchor=$entry.anchor" )
#set ( $catname = $entry.Category.Name )
<div class="ta-entry-footer">
<a href="http://simpy.com/simpy/LinkAdd.do?title=$entry.title&href=$entryURL=$entry.anchor">
<img src="$IMAGES/simpy-icon-16x16.png" title="Save to Simpy"></a>
<a href="http://del.icio.us/post?url=$entryURL;title=$entry.title">
<img src="$IMAGES/delicious-16x16.gif" title="Post to de.licio.us"></a>
<a href="http://digg.com/submit?phase=2&url=$entryURL&title=$entry.title">
<img src="$IMAGES/digg-16x16.png" title="Digg this entry"></a>
</div>
#end
You can paste this macro right before the "#foreach( $entry in $entries )" loop, and inside the loop just add "#entryButtons( $entry )".
When you are done, you will have sexy little buttons there, just like Tiago!
Posted by at 1:19 PM in Tips & Tricks
Comments (1) Trackbacks (0)
Simpify!
Technorati Tags: simpy roller jroller blog del.icio.us digg velocity macro
