The Pic Show Plugin is a very simple plugin to creates a page containing a table of all the specified pictures in the attachments.
Syntax: #
[{INSERT PicShowPlugin cols='<cols>' height='<height>' width='<width>' type='<type>' class='<class>' style='<style>' showName='<showName>' thumbnail='<thumbnail>'}]
Parameters#
- cols (optional)
-
Defines the picture amount in one row. Default is all in one row.
- height (optional)
-
Defines the height of each picture. Default is original.
- width (optional)
-
Defines the width of each picture. Default is original.
- type (optional)
-
Specify the type of the pictures. Devided by the comma. Default is 'JPG,PNG,GIF'. (Case insensitive)
- class (optional)
-
The css class of the table.
- style (optional)
-
The style of the pictures.
- showName (optional)
-
Whether show the file name as the caption under each picture. Default is "false".
- thumbnail (optional)
-
Whether create the thumbnails in the serverside. Default is "false".
Installation:#
Step 1) Add com.newland.jspwiki.plugin to your jspwiki.plugin.searchPath in jspwiki.properties
Step 2) Add the PicShowPlugin.class and Thumb.class to your classes using the path com.newland.jspwiki.plugin.
Step 3) Put the Thumb.jsp in your JSPWiki web root directory.
The plugin should now be ready for use.
I write the Thumb.jsp file for easy deploy. The other way is to use servlet, you can rewrite it into servlet.
PengHui
Add new attachment
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
class |
PicShowPlugin.class | 4.8 kB | 2 | 14-Nov-2006 11:27 | penghui | |
class |
Thumb.class | 3.0 kB | 1 | 14-Nov-2006 11:28 | penghui | |
jsp |
Thumb.jsp | 0.1 kB | 1 | 14-Nov-2006 11:28 | penghui | |
jpg |
screenshot.JPG | 32.8 kB | 1 | 03-Nov-2006 05:59 | 220.200.1.184 |