Monday, 23 October 2006
blojsom, Firefox 2, and Microsummaries
Miles writes in ...
Just in case no one else has thought of it...
Microsummaries for Blojsom!
0. Install the Blojsom addon bundle.
1. Create a velocity template: microsummary.vm, and put this in it:
Latest: $BLOJSOM_PLUGIN_LIST_TOOL.get($BLOJSOM_ENTRIES,
0).getEscapedTitle()
Not actually sure about the syntax, but it returns what's expected,
so, I'm living with it.
2. Create a new flavor: microsummary, text/plain and associate
microsummary.vm with it.
3. Create a plugin chain (perhaps conditional get is not good?) for
the new microsummary flavour. This is the chain I'm using right now:
conditional-get, meta, limiter, nofollow, rss-enclosure, list-tool
4. In the <head> section of your blog's HTML template add something
like this:
<link rel="microsummary" href="$BLOJSOM_BLOG.getBlogURL()?
flavor=microsummary"/>
Et voila. When you bookmark your blog in Firefox, you get a dropdown
box for the name, and you can choose the latest headline as the live
bookmark summary. Another 0-day Blojsom result![]()
Scary! And Firefox 2.0 isn't due until tomorrow. Oh ... wait ...
Technorati Tags: blojsom firefox microsummaries
