How to create an external attachment URL??

Version 2.1 by Vincent Massol on 2013/01/07

Example:

{{velocity}}
URL: $xcontext.getURLFactory().createAttachmentURL("file", "space", "page", "download", "", $context.context)
{{/velocity}}

Note that you'll need to have Programming Rights.

Get Connected