How to create an external URL to an attachment?

Last modified by Vincent Massol on 2013/02/09

Example:

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

Note that you'll need to have Programming Rights.

Tags:
   

Get Connected