I'm creating a custom macro... is there a way to get the path to the attachments on the current page when the macro is invoked?
Try converting the velocity from the user macro in this blogpost into pure Java:A simpler way to view attachments in Confluence
This is the key line to look at:
${req.contextPath}${attachment.downloadPathWithoutVersion}")
It looks like you're new here. Sign in or register to get started.