As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
ftl = freemarker template
What I showed before was example in a webscript that you call and gives you back a urlIf you just want to call the url assuming you have something in the main "company home" store and not in a avm or 3.0 collab site:{http}://{host}:{port}/alfresco/service/api/node/content/workspace/SpacesStore/{node_id}/{node_name_encoded}
the optional a=true attachment arg will do the following in the java code for the webscript // set header based on filename - will force a Save As from the browse if it doesn't recognize it // this is better than the default response of the browser trying to display the contents httpRes.setHeader("Content-Disposition", "attachment");
http://localhost:8080/alfresco/service/api/node/content{;property}/{store_type}/{store_id}/{node_id}?a={attach?}
http://localhost:8080/alfresco/service/api/node/content/${node.nodeRef.storeRef.protocol}/${node.nodeRef.storeRef.identifier}/${node.nodeRef.id}/${node.name?url