| java.lang.Object com.ecyrd.jspwiki.plugin.WeblogPlugin
WeblogPlugin | public class WeblogPlugin implements WikiPlugin,InitializablePlugin(Code) | | Builds a simple weblog.
The pageformat can use the following params:
%p - Page name
Parameters
- page - which page is used to do the blog; default is the current page.
- days - how many days the weblog aggregator should show. If set to "all", shows all pages.
- pageformat - What the entry pages should look like.
- startDate - Date when to start. Format is "ddMMyy";
- maxEntries - How many entries to show at most.
The "days" and "startDate" can also be sent in HTTP parameters,
and the names are "weblog.days" and "weblog.startDate", respectively.
The weblog plugin also adds an attribute to each page it is on: "weblogplugin.isweblog" is set to "true". This can be used to quickly peruse pages which have weblogs.
since: 1.9.21 |
DEFAULT_DATEFORMAT | final public static String DEFAULT_DATEFORMAT(Code) | | |
DEFAULT_DAYS | final public static int DEFAULT_DAYS(Code) | | |
DEFAULT_PAGEFORMAT | final public static String DEFAULT_PAGEFORMAT(Code) | | |
PARAM_ALLOWCOMMENTS | final public static String PARAM_ALLOWCOMMENTS(Code) | | |
PARAM_MAXENTRIES | final public static String PARAM_MAXENTRIES(Code) | | |
PARAM_STARTDATE | final public static String PARAM_STARTDATE(Code) | | |
findBlogEntries | public List findBlogEntries(PageManager mgr, String baseName, Date start, Date end) throws ProviderException(Code) | | Attempts to locate all pages that correspond to the
blog entry pattern. Will only consider the days on the dates; not the hours and minutes.
Returns a list of pages with their FIRST revisions.
|
initialize | public void initialize(WikiContext context, Map params)(Code) | | Just sets the "I am a weblog" mark.
|
|
|