Hello, we recently moved from Alfresco 3.2 to the latest 2017 one. Now we are trying to recreate rules from the old Alfresco, and we did not manage to have "new file notification by email" properly working. In Alfresco 3.2 it was:
....
You can view it through this link:
${url.serverPath}/alfresco${document.url}Or through the Alfresco client:
<#assign ref=space.nodeRef>
<#assign workspace=ref[0..ref?index_of("://")-1]>
<#assign storenode=ref[ref?index_of("://")+3..]>
${url.serverPath}/alfresco/navigate/browse/${workspace}/${storenode}....
But ${document.url} and all the code to get ${workspace} and ${storenode} does not work anymore.
From the new templates I guess that ${document.url} is now substituted by ${document.shareUrl}, but what about ${workspace} and ${storenode}? Do you have any clue?
Solved! Go to Solution.
You are right about the ${document.shareUrl}.
That one will give you the url to find the document.
You can create the link using something like this inside the template:
<a href="${document.shareUrl}">${document.name}</a>
You are right about the ${document.shareUrl}.
That one will give you the url to find the document.
You can create the link using something like this inside the template:
<a href="${document.shareUrl}">${document.name}</a>
Thanks Douglas for the help, the links you suggested are ok in the email. Is there also way to obtain the link to the folder containing the document, e.g.: http://alfresco:8080/share/page/context/mine/myfiles#filter=path%7C%2Ftest%2Fsmartfolder&page=1 ?
I believe there is no such parameter ready to use (at least, I do not it).
What you can do is to check the source code and try to find how it is created.
A good starting point is the breadcrumb component, as it creates the links for it.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.