Using JSPWiki plugins in Liferay Portal 6

One of the render engines of wiki syntax in Liferay Portal, is the JSPwiki engine (with its creole syntax). JSPWiki is also an opensource project and therefore i exists a lot of community plugins for extending its wiki funcionality. Some examples could be, plugins for inserting flash content or for generating PDF's. For using these JSPWiki plugins in Liferay Portal 6, you have to:

  1. Modify (wiki.formats.configuration.main[creole]=jspwiki-ext.properties) property in the portal-ext.properties. Note that jspwiki-ext.properties is loaded in the classpath.
  2. Download the corresponding jar for the plugin and copy to ROOT/WEB-INF/lib
  3. Modify jspwiki-ext.properties (hint: start from an existing one)
  4. Reboot the portal


The probe of concept was to add the JSP flash plugin and the wiki now can render the following instruction:

 [{Flash src=' http://bytescout.com/demo/swfscout_VideoSample.swf ' width='800' height='600'}]

for visualizing flash content. The result is:



Links:

To add a plugin modify the jspwiki.plugin.searchPath propertie

jspwiki.plugin.searchPath = org.myorganisation.jspwiki.myplugins,com.foobar.myplugins

 

00

Más entradas de blog

Añadir comentarios