Availability
Allows you to include a random quote in a blog entry from the net infamous Leeroy Jenkins
.
Description
What would Leeroy Jenkins do? Or rather, what would Leeroy Jenkins say? Let's do this!
Installation and Setup
In your global /WEB-INF/plugin.properties file, add the following line:
leeroy-jenkins=org.blojsom.plugin.text.LeeroyJenkinsPlugin
Add "leeroy-jenkins" to the end of one of your flavor-based plugin chains in /WEB-INF/(blog-id)/plugin.properties. Make sure that the meta plugin occurs before this plugin.
html.blojsom-plugin-chain=...,meta,...,leeroy-jenkins,...
Usage and URL Parameters
Usage
In your blog entry, on a separate line, use "meta-use-lj-quote=". You can leave it blank after the '=' to have the plugin insert a quote at random. Or you can use a specific number from 0 to 19 to use a specific quote.
In your template, you can pull out the quote like:
<p>And now, for your moment of zen: <i>$!entry.getMetaData().get("lj-quote")</i></p>