Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-31414

Add Attachments Macro (and Tools->Attachments) plugin point to insert columns into file list

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      It would be great if Confluence could establish a plugin point to add arbitrary columns to the file lists used in the Attachments Macro and Tools->Attachments parts of the system. Some of our add-ons need to mark up the Attachments file lists with new columns, and we would love to have a standardized way to do this.

      One possible implementation that would work for us would be along the following lines:

      Create a new <web-item>, containing:

      • an i18n column title to be inserted in the <th>
      • a style class to be applied to the <th> and <td>
      • a weight to position the column amongst other add-on links. For us, it would be sufficient to insert the plugin-supplied links all at the right hand side, immediately before any attachment actions...but if you wanted to go all-out and make all of the system attachment columns into their own web-items and permit a completely arbitrary rendering order, that would also work.
      • a Velocity context containing just a reference to the attachment itself (and/or attachment version)

      With the current implementation of the attachments macro and Tools->Attachments page, we would presumably need three different web-item sections:

      1- the Tools->Attachments page,
      2- the top-level Attachments Macro list (which contains just the file name and modified date), and
      3- the Attachments Macro version list (containing the version name, creator and date)

      Attachments

        Issue Links

          Activity

            People

              smansour Sherif Mansour
              7c60ab039b09 Scott Dudley [Inactive]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: