cancel
Showing results for 
Search instead for 
Did you mean: 

Site name in Freemarker Email Template?

andreas_wilmsme
Champ in-the-making
Champ in-the-making
Hi,
I am trying to set up a content rule that sends an Email to a list of users whenever a document has been changed in a Share site. Email works just fine, I can access all properties, such as "document.name", etc. and they will show in the Email.

However, I would like to send a link to the share site, something like "http://someserver/share/.../document" rather than the alfresco link "http://someserver/alfresco/.../document" that is generated by "document.url".
I would basically be enough to get the name of the site from somewhere, I could just use this to generate the link manually - but I have not any reference to how to determine the name of the site.

Any help greatly appreciated !!
Andreas
2 REPLIES 2

iblanco
Confirmed Champ
Confirmed Champ
I'm still wondering how this is done? Any information about that someone?

telesforos
Champ in-the-making
Champ in-the-making
This is what I have used but it's a kludge. The ${site} variable appears to be a memory location or something :?:
${url.serverPath}/share/page/site/${site}/document-details?nodeRef=${document.nodeRef}

Here's another stab at directing the client to the document located in share Smiley Indifferent

${url.serverPath}/share/page/site/${document.siteShortName!""}/