1
定制模型相关联的文档的路径我有自定义模型在露天的关联作为已在帖子提及: How do I associate one piece of content with another in Alfresco?获得在露天
有关属性,让我使用的属性的名称: var model = document.properties [“sc:itemNo”];
如何使用JavaScript获取此映像驻留在存储库中的名称和路径。
谢谢!
非常感谢。我现在可以看到关联文档的名称。如果我这样做:var qNameOfAssocatiatedNode = document.assocs [“sc:sampleAssoc”] [0] .url;我得到这个网址/d/d/workspace/SpacesStore/dbdeccd0-c647-4182-9a1f-07d3a93b8973/ppimage.png。如何通过点击可以访问的文档来获取可下载的url? – juilee
将node.downloadUrl附加到您的露天存储库的url。有关详细信息,请参阅http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet。 –
非常感谢。我这样做,它的工作的网址:VAR urlStr = document.assocs [ “SC:relatedDocuments”] [0]的.url; VAR IMAGEURL =“http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/"+urlStr.substring(4); – juilee