01-27-2010 10:13 AM
08-24-2010 10:47 AM
<#assign ref=space.nodeRef>
<#assign displayPaths=document.displayPath?split("/")>
<#assign site=displayPaths[3]>
http://${url.serverPath}/share/page/site/${site}/document-details?nodeRef=${document.nodeRef}
11-17-2010 03:21 AM
Hi All,All the code you need is in this thread.
is this possible? i´ve tried many thing to accomplish that but still not able to do such a thing.
any help is welcome.
thanks
12-15-2010 04:37 PM
What I am trying to achieve can be seen on the document details page for any content item in Share - in the right hand nav there is a box titled Share with "Document URL". In this box is the URL to this particular document - I need to know how that URL is dynamically generated. I thought I had it figured out when I changed the URL in the notify_user_email.ftl to http: //mydomain/share/proxy/alfresco-feed/api/node/content${document.url} but the ${document.url} generates a leading /d/d that breaks the URL.
For example -
The URL to the document is:
https: //mydomain/share/proxy/alfresco-feed/api/node/content/workspace/SpacesStore/b2e3c064-9988-422e-8416-05795e70d5fe/notify_user_email-3.ftl
The above example generates the following URL:
https: //mydomain/share/proxy/alfresco-feed/api/node/content/d/d/workspace/SpacesStore/b2e3c064-9988-422e-8416-05795e70d5fe/notify_user_email-3.ftl
Thoughts?
12-08-2011 12:47 PM
${url.serverPath}/share/page/document-details?nodeRef=${document.nodeRef}
${url.serverPath}/share/proxy/alfresco/api/node/content${document.url?substring(4)}
The first link opens the Share page of the document. The second link opens or downloads the document directly. ${url.serverPath}/share/proxy/alfresco/api/node/content${document.url?substring(4)}?a=true
If ${url.serverPath} returns something with localhost or so, consider to set repo.remote.url in alfresco-global.properties.repo.remote.url=http://your.domain.com:8080/alfresco
I hope this helps. If you find errors please respond!02-27-2015 07:38 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.