Apr
5
2008
Confluence Plugin: Advanced Attachment Viewer
Posted by Russell Brown at 1:16 PM
5 comments - Categories:
Confluence | Java | Development
I needed a configurable way to display lots of attachments in a Confluence [Atlassian] application/website. This Macro plug-in gives a pretty high level of customization compared to the default one available with the program.
Macro Name: AdvancedAttachmentViewer
Attributes:
| Name | Required | Description |
| upload | false | true or false Do you want to show the upload form to users who have the ability to. Default=false |
| columns | true | a comma seperated list of each column you want; the values are case sensative:
|
| columnNames | false | If you use this argument you must supply a name or at least a blank space for EACH column in the columns argument. My example below will show how to make some headers blank |
Example
{AdvancedAttachmentViewer:upload=false|columns=row,name,fileSize,actions|columnNames=,File Name,Size,}
Josh Kim wrote on 06/11/08 3:16 PM
Thank you for writing such a great plug-in! I had it work beautifully in 2.7.
Now, after moving into 2.8, I'm unable to get this installed. Can you check to see if this is compatible with the most recent version? (2.8.1 at the time of writing.)
(Could it be: The plugin key has to be defined in lower-case in the plugin descriptor.
When you call the plugin in wiki markup you can use any capitilization (eg. {module1} or {Module1})
http://confluence.atlassian.com/display/DOC/Writing+Confluence+Plugins