<?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: Removing @region does not remove JS dependencies in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310796#M263926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a different issue with markups a few months back and the behavior you describe sounds like a potential consequence of the same core behaviour that tripped me up. This is &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-19976" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-19976&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;the JIRA ticket&amp;lt;/a&amp;gt; I opened in September. If you read through the comments you should come to understand that any output generated by &amp;lt;@script&amp;gt; or &amp;lt;@link&amp;gt; is independant of the &amp;lt;@markup&amp;gt; (and by extension &amp;lt;@region&amp;gt;) it is contained in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By removing the &amp;lt;@markup&amp;gt; or &amp;lt;@region&amp;gt; you remove the model of rendered elements associated with that element, but since the deferred models of &amp;lt;@script&amp;gt; and &amp;lt;@link&amp;gt; are &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; associated with their original &amp;lt;@markup&amp;gt; / &amp;lt;@region&amp;gt;, they will not be removed along with it and are still present in the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my interpretation may be flawed as there is a lot going on behind the scenes that I have not fully retraced on a code level yet. This is something that Dave Draper or Kevin Roast may be best suited to answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you can reproduce this issue please create a JIRA or - if you are an Enterprise customer or working for one - create a support ticket for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can think of working around this would be by using sub-component configuration instead of customization to remove the component instead of "just" the &amp;lt;@region&amp;gt;. That way, the tag-filter web script will not even be evaluated and nothing needs to be removed after it has generated some output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 10:22:00 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2013-12-04T10:22:00Z</dc:date>
    <item>
      <title>Removing @region does not remove JS dependencies</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310795#M263925</link>
      <description>I want to customize document library page by removing some components, for example tags selector on the sidebar. However if I try to do that via Share extension and a &amp;lt;@region target="tags" action="remove"/&amp;gt;‍, I get a JavaScript error in browser, coming from tag-filter.js:&amp;lt;blockquote&amp;gt;Unc</description>
      <pubDate>Tue, 03 Dec 2013 13:57:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310795#M263925</guid>
      <dc:creator>bulatyaminov</dc:creator>
      <dc:date>2013-12-03T13:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing @region does not remove JS dependencies</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310796#M263926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a different issue with markups a few months back and the behavior you describe sounds like a potential consequence of the same core behaviour that tripped me up. This is &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-19976" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-19976&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;the JIRA ticket&amp;lt;/a&amp;gt; I opened in September. If you read through the comments you should come to understand that any output generated by &amp;lt;@script&amp;gt; or &amp;lt;@link&amp;gt; is independant of the &amp;lt;@markup&amp;gt; (and by extension &amp;lt;@region&amp;gt;) it is contained in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By removing the &amp;lt;@markup&amp;gt; or &amp;lt;@region&amp;gt; you remove the model of rendered elements associated with that element, but since the deferred models of &amp;lt;@script&amp;gt; and &amp;lt;@link&amp;gt; are &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; associated with their original &amp;lt;@markup&amp;gt; / &amp;lt;@region&amp;gt;, they will not be removed along with it and are still present in the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my interpretation may be flawed as there is a lot going on behind the scenes that I have not fully retraced on a code level yet. This is something that Dave Draper or Kevin Roast may be best suited to answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you can reproduce this issue please create a JIRA or - if you are an Enterprise customer or working for one - create a support ticket for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can think of working around this would be by using sub-component configuration instead of customization to remove the component instead of "just" the &amp;lt;@region&amp;gt;. That way, the tag-filter web script will not even be evaluated and nothing needs to be removed after it has generated some output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 10:22:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310796#M263926</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-12-04T10:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing @region does not remove JS dependencies</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310797#M263927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did as a quick workaround is just override the whole body region of documentlibrary and hide the tag-filter via CSS. This is of course not the best solution as the JS and HTML is still there on the page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try with sub-component configuration as well. And raise the support ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bulat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:26:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310797#M263927</guid>
      <dc:creator>byaminov</dc:creator>
      <dc:date>2013-12-12T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Removing @region does not remove JS dependencies</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310798#M263928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end Alfresco recommends to use sub-components indeed, as Axel also mentioned. A proper way to hide tag-filter on sidebar of document library is to create a Share module extension with following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;module&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;id&amp;gt;Remove Tag filter&amp;lt;/id&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;components&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;region-id&amp;gt;tags&amp;lt;/region-id&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source-id&amp;gt;documentlibrary&amp;lt;/source-id&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;template&amp;lt;/scope&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sub-components&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sub-component id="default"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;evaluations&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;evaluation id="guaranteedToHide"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;lt;render&amp;gt;false&amp;lt;/render&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;/evaluation&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/evaluations&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sub-component&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sub-components&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:47:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/removing-region-does-not-remove-js-dependencies/m-p/310798#M263928</guid>
      <dc:creator>bulatyaminov</dc:creator>
      <dc:date>2013-12-18T13:47:52Z</dc:date>
    </item>
  </channel>
</rss>

