<?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: Problem loading external libraries in surf pages in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46686#M18555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to build a page using Aikau or YUI? If the former, you should try to load external libraries using the Dojo loader instead of using &amp;lt;@script&amp;gt; inclusions, which are only meant for the latter / legacy case. From looking at dragula, I can't see what should be causing this error - I don't see anything that would be defined multiple times just by including that library. I suspect the error may be caused by some other issue, i.e. are you trying to create a page with multiple Dojo-based components? In Aikau, the expectation is that only one component is using Dojo / Aikau, i.e. in legacy pages it is the share-header, in Aikau-pages it is the sole component bound to the page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jan 2018 18:19:52 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-01-13T18:19:52Z</dc:date>
    <item>
      <title>Problem loading external libraries in surf pages</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46685#M18554</link>
      <description>Hello, Im new to alfresco5 and i m building some&amp;nbsp;surf pages&amp;nbsp;where i need to use&amp;nbsp;some external libraries&amp;nbsp; on them (i.e.&amp;nbsp; dragula&amp;nbsp;, datatables,etc)&amp;nbsp;To load those libraries (not even try to use them) i&amp;nbsp;use this directive in the html.ftl :&amp;lt;@markup id="js"&amp;gt; &amp;lt;@script type="text/javascript" src="$</description>
      <pubDate>Fri, 12 Jan 2018 10:45:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46685#M18554</guid>
      <dc:creator>aalvarezfern</dc:creator>
      <dc:date>2018-01-12T10:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external libraries in surf pages</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46686#M18555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to build a page using Aikau or YUI? If the former, you should try to load external libraries using the Dojo loader instead of using &amp;lt;@script&amp;gt; inclusions, which are only meant for the latter / legacy case. From looking at dragula, I can't see what should be causing this error - I don't see anything that would be defined multiple times just by including that library. I suspect the error may be caused by some other issue, i.e. are you trying to create a page with multiple Dojo-based components? In Aikau, the expectation is that only one component is using Dojo / Aikau, i.e. in legacy pages it is the share-header, in Aikau-pages it is the sole component bound to the page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 18:19:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46686#M18555</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-13T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external libraries in surf pages</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46687#M18556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, i tried loading it with dojo&amp;nbsp; and it worked in&amp;nbsp;almost&amp;nbsp;&amp;nbsp;all libraries.There&amp;nbsp;is ,still ,&amp;nbsp;a library that doesnt work yet (dragula).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this code to load it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;require(["&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.js" rel="nofollow noopener noreferrer" target="_blank"&gt;https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.js&lt;/A&gt;&lt;SPAN&gt;"], function(){&lt;/SPAN&gt;&lt;BR /&gt; dragula([document.getElementById('left-defaults')]);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the library gets loaded correctly , but it doesnt work properly.But i think that this a problem out of the scope of this question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:26:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-loading-external-libraries-in-surf-pages/m-p/46687#M18556</guid>
      <dc:creator>aalvarezfern</dc:creator>
      <dc:date>2018-01-15T11:26:42Z</dc:date>
    </item>
  </channel>
</rss>

