java.lang.Object
org.roller.presentation.velocity.plugins.jspwiki.WikiPlugin
- All Implemented Interfaces:
- org.roller.presentation.velocity.PagePlugin
- public class WikiPlugin
- extends java.lang.Object
- implements org.roller.presentation.velocity.PagePlugin
Wiki plugin using the JSPWiki WikiEngine. If you want Wiki links to point
to your JSPWiki, then edit the jspwiki.properties fiel in Roller's WEB-INF
directory and set the jspwiki.baseURL appropriately. For example, if your
Wiki is on your localhost in the Servlet Context named 'wiki' then you'd
set jspwiki.baseURL like so:
jspwiki.baseURL=http://local:8080/wiki/
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mLogger
private static org.apache.commons.logging.Log mLogger
mWikiEngine
WikiEngine mWikiEngine
mWikiContext
WikiContext mWikiContext
mWikiPage
WikiPage mWikiPage
WikiPlugin
public WikiPlugin()
init
public void init(org.roller.presentation.RollerRequest rreq,
org.apache.velocity.context.Context ctx)
- Put plugin into the page context so templates may access it.
- Specified by:
init in interface org.roller.presentation.velocity.PagePlugin
render
public java.lang.String render(java.lang.String src)
- Convert an input string that contains text that uses JSPWiki
syntax to an output string in HTML format.
makeCamelCaseWikiLink
public java.lang.String makeCamelCaseWikiLink(org.roller.pojos.WeblogEntryData wd,
java.lang.String prefix)
- Return URL to the Wiki page for a weblog entry, CamelCase style
makeSpacedWikiLink
public java.lang.String makeSpacedWikiLink(org.roller.pojos.WeblogEntryData wd,
java.lang.String prefix)
- Return URL to the Wiki page for a weblog entry, spacey style