Upgraded to Roller 5.0 and added a Like Button
Apache Roller 4 was released in December 2007. After 3.5 years, Roller 5 has landed!
The major new feature in Roller 5.0 is Media Blogging, a set of enhancements to Roller's file upload and management capabilities. Also included in 5.0 are simple multi-site support, OpenID and OAuth support for Roller's AtomPub interface. All major dependencies have been updated and Roller now uses Maven for build and dependency management. You can find a summary of Roller 5.0's new features on the Roller wiki.
I upgraded to Roller 5.0, RC4 back in March and experienced a few issues. This morning, I upgraded to the final release and everything appears to working nice and smooth. To celebrate, I added a Facebook Like Button to each entry. Adding it was pretty straightforward. Below is the code I added to my _day.vm template:
<span id="fb-root"></span> <script src="//connect.facebook.net/en_US/all.js#appId=226411374036019&xfbml=1"></script> <fb:like href="$url.entry($entry.anchor)" send="false" show_faces="false" font="verdana"></fb:like>
I tried removing the <script> tag and putting it in my wro4j configuration file, but this caused the Like button to disappear. I also experimented with adding Twitter and LinkedIn buttons, but decided not to add them since it was difficult to get them all to align and look good together. However, if you'd like to add either of them to your Roller blog, you can do so with the following code:
Kudos to Dave for all his hard work on Roller throughout the years.