<?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 Alfresco Document Link: 'Remove Document' removes original, too in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-document-link-remove-document-removes-original-too/m-p/279901#M233031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to set up a simple web script which provides document links. I've created a document library action and the appropriate controller script, &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;linkTo.post.js&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;. Things initially work as expected. I create the link using the &amp;lt;javascript&amp;gt;newParentFolder.addNode(documentNode)&amp;lt;/javascript&amp;gt; method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, deleting the link also deletes the original. I had a look at the Alfresco source code and found that deleting a document is simply a call to &amp;lt;javascript&amp;gt;node.remove();&amp;lt;/javascript&amp;gt;, of which the JavaScript API documentation states that it deletes the node (in contrast to &amp;lt;javascript&amp;gt;folder.removeNode()&amp;lt;/javascript&amp;gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now this is obviously not what I want. Removing the link should remove only the link, not the orginal node. I'd like to mimic the behaviour of Unix symbolic links. I suppose I need to create a special node in the destination folder for that. But how to I do that? Are aspects the right way to go here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anybody's interested, my current (alpha-quality) code lives on &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://github.com/Wilhelm-Buechner-Hochschule/link-to" rel="nofollow noopener noreferrer"&gt;https://github.com/Wilhelm-Buechner-Hochschule/link-to&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;GitHub&amp;lt;/a&amp;gt;. The development environment is Alfresco Community 4.2.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;— Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 15:06:16 GMT</pubDate>
    <dc:creator>technaton</dc:creator>
    <dc:date>2013-08-22T15:06:16Z</dc:date>
    <item>
      <title>Alfresco Document Link: 'Remove Document' removes original, too</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-document-link-remove-document-removes-original-too/m-p/279901#M233031</link>
      <description>I'm trying to set up a simple web script which provides document links. I've created a document library action and the appropriate controller script, linkTo.post.js‍. Things initially work as expected. I create the link using the &amp;lt;javascript&amp;gt;newParentFolder.addNode(documentNode)&amp;lt;/javascript</description>
      <pubDate>Thu, 22 Aug 2013 15:06:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-document-link-remove-document-removes-original-too/m-p/279901#M233031</guid>
      <dc:creator>technaton</dc:creator>
      <dc:date>2013-08-22T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Document Link: 'Remove Document' removes original, too</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-document-link-remove-document-removes-original-too/m-p/279902#M233032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Technaton,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also want to "soft link" folders and files, and it looks like your code on GitHub may be just what I need! Can you please share how to install this please? Thank you very much in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 01:20:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-document-link-remove-document-removes-original-too/m-p/279902#M233032</guid>
      <dc:creator>eleutian</dc:creator>
      <dc:date>2013-11-14T01:20:08Z</dc:date>
    </item>
  </channel>
</rss>

