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
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
Oliver Beirne Xena Lappin
Share link - ${document.shareUrl} we have this property
Public Link - ? ? ? what is the property Please share
Angel Borroy
There is no pre-defined property. You have to inject it by yourself as it's explained at the link I gave you.
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
Using Alfresco JavaScript API, you can write something similar to
var link = "http://localhost:8080/share/s/" + document.properties["qshare:sharedId"];
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
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.
if i call the link like this $(publicURL) can i get the value. Please let me know .
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
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.