Confluence Plugin: Advanced Attachment Viewer

Apr 05, 2008

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:
  • actions
  • comment
  • creationDate
  • fileSize
  • history
  • lastModified
  • lastModifiedName
  • name
  • row
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,}

Download Advanced Attachment View Plugin Here (zip)

Comments

Josh Kim

Josh Kim wrote on 06/11/08 3:17 PM

Hello, 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
Josh Kim

Josh Kim wrote on 06/11/08 4:09 PM

Actually, after some more time with the problem, I decided to use the Reporting Plugin instead.
Russell Brown

Russell Brown wrote on 06/11/08 4:11 PM

It does have to do with the case. I will be rolling out an updated version of this in the near future. I've been using the latest version in 2.8.1 with good success...
russ

russ wrote on 07/07/08 4:18 PM

i would like to test out your macro in 2.8. it looks great! unfortunately your download link is broken. do you have it up anywhere else?
Robert Quin

Robert Quin wrote on 11/04/08 4:09 PM

Please repost AdvancedAttachmentViewer.zip.. i really need this functionality and would prefer to not re-invent. thanks
Jessica

Jessica wrote on 11/26/09 4:04 PM

Have you been able to fix the problem and release an updated version for 2.8?

Write your comment



(it will not be displayed)



Subscribe to this comment thread