07-26-2018 09:17 AM
For example
In mail we can send a below code to view the uploaded files with login.
<p>Click this link to view the item:<br />
<br />${document.shareUrl}</p>
We need a same attribute for public link. what is the shortcode "${document.shareUrl}" like this for Public file sharing link.
Please send a property of Public link.
Kindly do the needful
07-27-2018 10:44 AM
You need to put the value in the template.
This is a sample by using JavaScript: Send e-mail from a template in Alfresco | Open Source Technical Blog
07-31-2018 07:53 AM
Oliver Beirne Xena Lappin
Share link - ${document.shareUrl} we have this property
Public Link - ? ? ? what is the property Please share
Angel Borroy
07-31-2018 08:44 AM
There is no pre-defined property. You have to inject it by yourself as it's explained at the link I gave you.
08-01-2018 01:18 AM
Angel Borroy Oliver Beirne Xena Lappin
How to get the value of public link . In that link you create a mail.
i have to get or pass the value of Public link. once i get the public link. i can create a mail.
my problem is how to get the public link . . Kindly help
08-01-2018 02:57 AM
Using Alfresco JavaScript API, you can write something similar to
var link = "http://localhost:8080/share/s/" + document.properties["qshare:sharedId"];
08-01-2018 05:03 AM
Angel Borroy Xena Lappin Oliver Beirne
I want get the value like this of any thing
${document.shareUrl} ---- ${document.publicUrl} some thing related this .
Please help because we are not much aware of java
08-01-2018 05:07 AM
Again...
Please, read the link I gave you:
Send e-mail from a template in Alfresco | Open Source Technical Blog
In that blog post it's explained how to inject custom variables in email templates.
Again...
There is no ${document.publicUrl} by default, you have to set it by using JavaScript or Java. You cannot get the value by any other mean.
08-01-2018 05:16 AM
if i call the link like this $(publicURL) can i get the value. Please let me know .
08-01-2018 05:39 AM
Angel Borroy
if i call the link like this $(publicURL) can i get the value. Please let me know . Tell the variable name of public share
Explore our Alfresco products with the links below. Use labels to filter content by product module.