<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: edit email template wf-email.html.ftl to link to share content instead of download link in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288555#M241685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Share there are two ways you can get to a document. One is through the Repository and the other is through Sites (assuming the document is in a site). The URL to get to the document details for a document that is in a site looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/page/site/test-site-1/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/site/test-site-1/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the site ID, which in my example is "test-site-1". There may not be a quick way from the template to know if a document is in a site or not, and if it is, what is its site ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When a document is not in a site, its URL looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that particular email template, the place you'd want to change the URL is right here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href="${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if all of your documents are always in the repository and never in Share sites, you can use the share/page/document-details URL here. If all of your documents are always in a Share site and never in the repository, you can use the share/page/site URL but you'll have to figure out what the site ID is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your workflows run with documents that are sometimes in sites and sometimes not, you'll have to do something different. Maybe you could write a web script that would take the nodeRef as an argument, figure out if it was in a site or not, and then redirect to the appropriate URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just an idea. Others may have better ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 22:42:00 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-04-16T22:42:00Z</dc:date>
    <item>
      <title>edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288554#M241684</link>
      <description>Hi,the default wf-email.html.ftl will provide a download link to the content added to a workflow. I would prefer to provide a link to the content in share instead.Is there a simple line of code that i can replace?</description>
      <pubDate>Wed, 16 Apr 2014 20:10:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288554#M241684</guid>
      <dc:creator>pwjepson</dc:creator>
      <dc:date>2014-04-16T20:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288555#M241685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Share there are two ways you can get to a document. One is through the Repository and the other is through Sites (assuming the document is in a site). The URL to get to the document details for a document that is in a site looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/page/site/test-site-1/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/site/test-site-1/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the site ID, which in my example is "test-site-1". There may not be a quick way from the template to know if a document is in a site or not, and if it is, what is its site ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When a document is not in a site, its URL looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/f70e2505-5002-42b7-a71b-2e09aca0c2d0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that particular email template, the place you'd want to change the URL is right here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href="${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if all of your documents are always in the repository and never in Share sites, you can use the share/page/document-details URL here. If all of your documents are always in a Share site and never in the repository, you can use the share/page/site URL but you'll have to figure out what the site ID is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your workflows run with documents that are sometimes in sites and sometimes not, you'll have to do something different. Maybe you could write a web script that would take the nodeRef as an argument, figure out if it was in a site or not, and then redirect to the appropriate URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just an idea. Others may have better ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 22:42:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288555#M241685</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-16T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288556#M241686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the coding to get the link was beyond me unfortunately, so i went with this work around. I removed the download link completely and just displayed the link to the task which was generated automatically in the email template already.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 16:30:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288556#M241686</guid>
      <dc:creator>pwjepson</dc:creator>
      <dc:date>2014-05-16T16:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288557#M241687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-userid="110432" data-username="pwjepson" href="https://community.alfresco.com/people/pwjepson" rel="nofollow noopener noreferrer"&gt;pwjepson _&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;i am also having a trouble making the link available on the email template. can you share your workaround here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288557#M241687</guid>
      <dc:creator>tushar_khanka</dc:creator>
      <dc:date>2017-08-01T09:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288558#M241688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;B&gt;tushar Khanka&lt;/B&gt;‌ - I'm not sure &lt;B&gt;pwjepson _&lt;/B&gt;&amp;nbsp;has been back to the community since we moved to this platform. Did you try the workaround they suggested (r&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;emoved the download link completely and just displayed the link to the task which was generated automatically in the email template already)&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288558#M241688</guid>
      <dc:creator>kgastaldo</dc:creator>
      <dc:date>2017-08-01T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288559#M241689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I did was remove the section of code that displayed the download link. then the only option for the user was to open the task. it worked out better for us since we wanted to keep the users in their tasks and within the workflows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:46:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288559#M241689</guid>
      <dc:creator>pwjepson</dc:creator>
      <dc:date>2017-08-01T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288560#M241690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome back &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I'm thinking you have 2 accounts?&amp;nbsp;Are you &lt;A __default_attr="165366" __jive_macro_name="user" _jive_internal="true" data-id="165366" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/jepsontech" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:55:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288560#M241690</guid>
      <dc:creator>kgastaldo</dc:creator>
      <dc:date>2017-08-01T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288561#M241691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I may be under jepsontech as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my Verizon, Samsung Galaxy smartphone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 18:01:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288561#M241691</guid>
      <dc:creator>jepsontech</dc:creator>
      <dc:date>2017-08-01T18:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: edit email template wf-email.html.ftl to link to share content instead of download link</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288562#M241692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are. I'll PM you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 18:09:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/edit-email-template-wf-email-html-ftl-to-link-to-share-content/m-p/288562#M241692</guid>
      <dc:creator>kgastaldo</dc:creator>
      <dc:date>2017-08-01T18:09:51Z</dc:date>
    </item>
  </channel>
</rss>

