Download page Customizing the Attachments Macro in a Viewport.
Customizing the Attachments Macro in a Viewport
Scroll Viewport comes with a special Viewport-aware replacement of the Confluence Attachments macro, that can be used to individually change the look of the attachments list.
Default Output of the Attachments Macro in Viewport
When a page is rendered in a viewport, Scroll Viewport will automatically replace the Confluence Attachments macro with the Viewport-aware Attachments macro. This means, users can (and should) use the Confluence Attachments macro. By default Scroll Viewport uses the following Velocity file to output the Attachments list:
Theme developers can override the default template of attachment macros, to change what information about the attachments is outputted and how it is rendered..
To customize the output of the attachments macro, you can override the default template as follows:
Create a page overrides/attachments.vm in your theme and use the default template (above) and modify it.
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: Click Here