Dashboard > blojsom > ... > Available Plugins > Leeroy Jenkins Plugin
  blojsom Log In   View a printable version of the current page.  
  Leeroy Jenkins Plugin
Added by David Czarnecki, last edited by David Czarnecki on Sep 27, 2005  (view change)
Labels: 
(None)

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>

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators