<?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: create link to node or folder using js in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44663#M18151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noticed that when creating links with the above code, i get the warning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARN&amp;nbsp; [web.scripts.ActionEvaluatorHelper] Evaluator 'null' not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I browse to the folder that the link exists. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: ok, the above warning i am getting also when i create the link from share interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2018 10:45:32 GMT</pubDate>
    <dc:creator>mtsiak</dc:creator>
    <dc:date>2018-10-22T10:45:32Z</dc:date>
    <item>
      <title>create link to node or folder using js</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44659#M18147</link>
      <description>Hi all. in 5.2 how can i create a link to a document (or a folder) that when i delete the source node, it will also be deleted.I have seenhttps://community.alfresco.com/thread/149153-create-a-link-to-a-node-file-or-folder#comment-617799&amp;nbsp;&amp;nbsp;and DocumentLinkServiceImpl.javaalfresco-open-mirror - Revisio</description>
      <pubDate>Tue, 02 Oct 2018 11:58:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44659#M18147</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2018-10-02T11:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: create link to node or folder using js</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44660#M18148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are describing is the out-of-the-box behavior for links in Alfresco. If you create a document, then do a Copy, you can choose "Create&amp;nbsp;Link" when you pick the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then go delete the original document, the link is also deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the functionality you are looking for or is it something different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 01:31:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44660#M18148</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-10-03T01:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: create link to node or folder using js</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44661#M18149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes this functionallity we want to reproduce using javascript.&lt;/P&gt;&lt;P&gt;if we use:&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;var pr = [];&lt;BR /&gt;pr["cm:name"] = "targetName.jpg.url";&lt;BR /&gt;pr["cm:destination"] = "workspace://SpacesStore/76c17fe2-93f9-4293-a989-e50c4c1e01e4"; (Alfresco Target Node Reference)&lt;BR /&gt;pr["cm:title"] = "targetName.jpg";&lt;BR /&gt;pr["cm:description"] = "targetName.jpg";&lt;BR /&gt;linkNode = space.createNode("targetName.jpg.url", "{&lt;A href="http://www.alfresco.org/model/application/1.0}filelink" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/application/1.0}filelink&lt;/A&gt;", pr);&lt;BR /&gt;linkNode.save();&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;as suggested in a previous post, the assosiasion is not created, add the aspect ASPECT_LINKED is not added to the target node (while enabling and dissabling the ContentModel.ASPECT_AUDITABLE behaviour).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 07:54:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44661#M18149</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2018-10-03T07:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: create link to node or folder using js</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44662#M18150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add the linked aspect yourself. So, taking your code, and adding a couple of variables for the doc and the space, this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var doc = search.findNode("workspace://SpacesStore/af65018d-dabb-4a83-ac22-007dd99ff361");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var space = search.findNode("workspace://SpacesStore/6513e985-ce14-4002-bee9-0a60279f44b0");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pr = [];&lt;BR /&gt;pr["cm:name"] = "test1.txt.url";&lt;BR /&gt;pr["cm:destination"] = doc.nodeRef.toString();&lt;BR /&gt;pr["cm:title"] = "test1.txt";&lt;BR /&gt;pr["cm:description"] = "test1.txt";&lt;BR /&gt;&lt;SPAN&gt;linkNode = space.createNode("test1.txt.url", "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/application/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/application/1.0&lt;/A&gt;&lt;SPAN&gt;}filelink", pr);&lt;/SPAN&gt;&lt;BR /&gt;linkNode.save();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc.addAspect("app:linked");&lt;BR /&gt;doc.save();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 01:41:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44662#M18150</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-10-04T01:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: create link to node or folder using js</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44663#M18151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noticed that when creating links with the above code, i get the warning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARN&amp;nbsp; [web.scripts.ActionEvaluatorHelper] Evaluator 'null' not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I browse to the folder that the link exists. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: ok, the above warning i am getting also when i create the link from share interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 10:45:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-link-to-node-or-folder-using-js/m-p/44663#M18151</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2018-10-22T10:45:32Z</dc:date>
    </item>
  </channel>
</rss>

