<?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: &amp;lt;@script&amp;gt; vs &amp;lt;script&amp;gt; in a foo.get.html.ftl in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26344#M11396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The raw output of a .get.html.ftl is not intended to be included in the HTML head section. Only via special directives like the @-link can they provide some content to the head section. You can use the legacy support for .get.head.ftl files to include any custom raw script includes, switch to customising the resources.get.html.ftl (which specifically hooks into the head section) or provide a sub-component to the head-resources region defined in the default Alfresco template (which resources.get.html.ftl also hooks into).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should not have to import the Alfresco template to include a file with a checksum attached to it. The checksumResource directive is globally registered and should be accessible by any FTL file by default. E.g. the resources.get.html.ftl includes a JavaScript file in the following way by using that directive.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;script type="text/javascript" src="&amp;lt;@checksumResource src="${url.context}/res/modules/editors/tinymce/tinymce.min.js" parameter="checksum"/&amp;gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 15:19:40 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-05-29T15:19:40Z</dc:date>
    <item>
      <title>&lt;@script&gt; vs &lt;script&gt; in a foo.get.html.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26343#M11395</link>
      <description>My project needs to use a moderately large (1.5MB) JavaScript library in both our login page, and in our regular pages once you've logged in. &amp;nbsp;When we've "naively" referenced this file from both places, its causing it to get downloaded twice. &amp;nbsp;Once it is downloaded by its normal name "example-librar</description>
      <pubDate>Mon, 29 May 2017 14:32:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26343#M11395</guid>
      <dc:creator>davidraines</dc:creator>
      <dc:date>2017-05-29T14:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;@script&gt; vs &lt;script&gt; in a foo.get.html.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26344#M11396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The raw output of a .get.html.ftl is not intended to be included in the HTML head section. Only via special directives like the @-link can they provide some content to the head section. You can use the legacy support for .get.head.ftl files to include any custom raw script includes, switch to customising the resources.get.html.ftl (which specifically hooks into the head section) or provide a sub-component to the head-resources region defined in the default Alfresco template (which resources.get.html.ftl also hooks into).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should not have to import the Alfresco template to include a file with a checksum attached to it. The checksumResource directive is globally registered and should be accessible by any FTL file by default. E.g. the resources.get.html.ftl includes a JavaScript file in the following way by using that directive.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;script type="text/javascript" src="&amp;lt;@checksumResource src="${url.context}/res/modules/editors/tinymce/tinymce.min.js" parameter="checksum"/&amp;gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 15:19:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26344#M11396</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-05-29T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;@script&gt; vs &lt;script&gt; in a foo.get.html.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26345#M11397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that was it. &amp;nbsp;The &amp;lt;@checksumResource&amp;gt; was the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 16:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lt-script-gt-vs-lt-script-gt-in-a-foo-get-html-ftl/m-p/26345#M11397</guid>
      <dc:creator>davidraines</dc:creator>
      <dc:date>2017-05-29T16:59:14Z</dc:date>
    </item>
  </channel>
</rss>

