<?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 Setting client-debug for using uncompressed JS files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236923#M190053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;EM&gt;This is just in case anyone else needed this information - took me a while to find it (and there are a few forum posts related to this without a clear pointer).&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For webscripts and dashlets, the components/component.head.inc file determines whether to use the compressed or uncompressed JS file included with the component:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#assign minJS=(config.global.flags.childrenMap["client-debug"][0].value = "true")?string(".js", "-min.js")&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration settings are stored in the webscripts-framework-config-custom.xml file (if you're making the changes in your web-extension vs. in the main webscripts-framework-config.xml). The &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_Web_Scripts#Global_and_Scoped_Config" rel="nofollow noopener noreferrer"&gt;3.0_Web_Scripts wiki page&lt;/A&gt;&lt;SPAN&gt; describes how configurations are defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To set the client-debug flag, add this code to webscripts-framework-config-custom.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;true&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This requires an Alfresco restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2009 20:48:43 GMT</pubDate>
    <dc:creator>cybertoast</dc:creator>
    <dc:date>2009-11-18T20:48:43Z</dc:date>
    <item>
      <title>Setting client-debug for using uncompressed JS files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236923#M190053</link>
      <description>This is just in case anyone else needed this information - took me a while to find it (and there are a few forum posts related to this without a clear pointer).For webscripts and dashlets, the components/component.head.inc file determines whether to use the compressed or uncompressed JS file include</description>
      <pubDate>Wed, 18 Nov 2009 20:48:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236923#M190053</guid>
      <dc:creator>cybertoast</dc:creator>
      <dc:date>2009-11-18T20:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting client-debug for using uncompressed JS files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236924#M190054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice tip - I guess it's not that obvious unless you'd been to one of our recent meet-ups&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll be recommending people start using the somewhat more logically named &lt;/SPAN&gt;&lt;STRONG&gt;share-config-custom.xml&lt;/STRONG&gt;&lt;SPAN&gt; instead of webscripts-framework-config-custom.xml. In fact, I believe this should work already on 3.2r.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 22:25:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236924#M190054</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-11-18T22:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting client-debug for using uncompressed JS files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236925#M190055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Alfresco 3.2r Enterprise this configuration caused exceptions in Freemarker for me. Adding replace="true" to the config block fixed my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config replace="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;true&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that, as well as several other good development tips here: &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/kevinr/2010/04/07/developer-tips-for-alfresco-share-33/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/kevinr/2010/04/07/developer-tips-for-alfresco-share-33/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 15:32:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236925#M190055</guid>
      <dc:creator>esheehan</dc:creator>
      <dc:date>2010-04-08T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting client-debug for using uncompressed JS files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236926#M190056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For Alfresco Share, the relevant configuration file is &amp;lt;tomcat&amp;gt;/shared/classes/alfresco/web-extension/share-config-custom.xml. Make sure that you restart Alfresco after changing the setting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;config replace="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;true&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 01:32:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-client-debug-for-using-uncompressed-js-files/m-p/236926#M190056</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2012-01-10T01:32:42Z</dc:date>
    </item>
  </channel>
</rss>

