Summary#

Attached is a WeblogCalendarPlugin that is basically a modified version of the CalendarPlugin. It allows a user to display all the blog entries for a given day and any day that has a blog entry is highlighted. Blog entries are filtered using the http parameters weblog.startDate and weblog.days, which are used by the WeblogPlugin. Currently the plugin will only display if the current page name ends in 'Blog'. This allows you to place the plugin in the LeftMenu wiki page but this can be modified to fit your needs. This functionality is similar to the Calendar tag but is more generic and highlights the days that have blog entries. Hopefully the plugin can get you started.

Hope you enjoy it!

WeblogCalendarPlugin.jpg

Usage#

      [{WeblogCalendarPlugin}]

Installation#

Currently the src files are in the default plugin package com.ecyrd.jspwiki.plugin. Feel free to move them. To install WeblogCalendarPlugin:

  1. Copy the src files to com.ecyrd.jspwiki.plugin or whatever package you desire. Note: if you move them to another package be sure to include the package in the jspwiki.plugin.searchPath setting in jspwiki.properties.
  2. Rebuild the JSPWiki.jar file.
  3. Copy JSPWiki.jar to WEB-INF/lib.
  4. Copy the contents of the weblogcalendar.css to the end of the jspwiki.css.
  5. Restart JSPWiki.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java
WeblogCalendarPlugin.java 7.4 kB 1 05-Jun-2008 18:54 SamBurden
jpg
WeblogCalendarPlugin.jpg 13.7 kB 1 05-Jun-2008 19:48 SamBurden
java
WeblogCalendarPrinter.java 20.1 kB 2 06-Jun-2008 22:19 SamBurden Fixed Month and Year links
css
weblogcalendar.css 0.6 kB 1 05-Jun-2008 19:38 SamBurden
« This page (revision-10) was last changed on 05-Jun-2008 20:18 by SamBurden