<?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 How to include new libraries in Alfresco share? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87212#M26312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am developing custom controls for alfresco share (by creating Freemarker templates) and I would like to include additional JavaScript libraries (i.e. &lt;A href="https://select2.org/" rel="nofollow noopener noreferrer"&gt;Select2&lt;/A&gt;). How can I achieve that?&lt;/P&gt;&lt;P&gt;Normally i would put them in &amp;lt;head&amp;gt; tag, but in .ftl files it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2019 19:05:18 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2019-07-25T19:05:18Z</dc:date>
    <item>
      <title>How to include new libraries in Alfresco share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87212#M26312</link>
      <description>Hello,I am developing custom controls for alfresco share (by creating Freemarker templates) and I would like to include additional JavaScript libraries (i.e. Select2). How can I achieve that?Normally i would put them in &amp;lt;head&amp;gt; tag, but in .ftl files it does not work.Regards,Mike</description>
      <pubDate>Thu, 25 Jul 2019 19:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87212#M26312</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-07-25T19:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to include new libraries in Alfresco share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87213#M26313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add those files as dependency in share-config-custom.xml.&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt; &amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;css src="/res/scripts/DITAStorm/styles.css" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;js src="/res/scripts/DITAStorm/DITAStorm.js" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/forms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:04:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87213#M26313</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-07-26T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to include new libraries in Alfresco share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87214#M26314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but I am on Docker so do not have direct access to /res/scripts folder.&lt;/P&gt;&lt;P&gt;I also cannot provide absolute path because it is adding "&lt;SPAN class=""&gt;&lt;SPAN class="" title="http://localhost:8180/share/res/com/santrio/select2.min.js"&gt;http://localhost:8180/share/res/com/myproject/&lt;/SPAN&gt;&lt;/SPAN&gt;" all the time.&lt;/P&gt;&lt;P&gt;Of course I tried to add those files into the src/main/resources/alfresco/web-extension/site-webscripts/com/myproject or &lt;SPAN class=""&gt;src/main/resources/res/scripts/&lt;/SPAN&gt; folder but it does not work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:58:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87214#M26314</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-07-26T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to include new libraries in Alfresco share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87215#M26315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to place js file inside&amp;nbsp;src/main/amp/web/js of share folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2019 04:16:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87215#M26315</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-07-28T04:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to include new libraries in Alfresco share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87216#M26316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer. I managed to do it by modifying Dockerfile but your solution seems to be better.&lt;/P&gt;&lt;P&gt;Unfortunately, the script throws an error in the browser.&lt;/P&gt;&lt;P&gt;It looks like the library itself have an error somewhere (which is obviously a nonsense - it is working on my demo HTML page). Maybe it is connected with the fact that Alfresco has it's own, very limited, Javascript engine (Rhino)... or because this library needs jQuery which might be loading after this script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 12:09:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-include-new-libraries-in-alfresco-share/m-p/87216#M26316</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-07-29T12:09:58Z</dc:date>
    </item>
  </channel>
</rss>

