cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Link to Document in Share in Email Template

fernandoe
Champ on-the-rise
Champ on-the-rise
Hi all,

I'm trying to include the link to the document in Share with a notification email.

The default notification template is pointing toward the document through Alfresco Explorer (http://<ourServerName>/alfresco/navigate/browse/${workspace}/${storenode}).
However, I would like to point the user toward the document via the Share portal: (http://<ourServerName>/share/[whatever need to go here]).

Anyone familiar with the variables I'm to inject in the freemarker template to make this happen?

Thanks for any and all help!

Fernando
1 REPLY 1

neozone
Champ in-the-making
Champ in-the-making
Now, I can use this code but still didn't find how to refer site

http://<ourServerName>:8080/share/page/site/SiteXXX/document-details?nodeRef=${document.nodeRef}

Have anyone know how to refer site name from Alfresco Explorer?
I try this but didn't work

<#assign path=space.displayPath>
<#assign site=path[path?index_of("Sites/")+6..<#if space.name != "documentLibrary">path?index_of("/documentLibrary")-1</#if>]>

——————————–
Finally, I can get only site name by using this
<#assign path=space.displayPath>
<#if space.name != "documentLibrary">
<#assign site=path[path?index_of("Sites/")+6..path?index_of("/documentLibrary")-1]>
<#else>
<#assign site=path[path?index_of("Sites/")+6..]>
</#if>

http://<ourServerName>:8080/share/page/site/${site}/document-details?nodeRef=${document.nodeRef}