How to create an external URL to an attachment??
Version 3.1 by Vincent Massol on 2013/01/07
Example:
{{velocity}}
URL: $xcontext.getURLFactory().createAttachmentURL("file", "space", "page", "download", "", $context.context)
{{/velocity}}
URL: $xcontext.getURLFactory().createAttachmentURL("file", "space", "page", "download", "", $context.context)
{{/velocity}}
Note that you'll need to have Programming Rights.