<?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 extend Alfresco.module.DoclibGlobalFolder component? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-module-doclibglobalfolder-component/m-p/65362#M22120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wolud like to extend / modify functionality of every component which uses&amp;nbsp;&lt;SPAN&gt;YAHOO.widget.Treeview e.g.&amp;nbsp;&lt;SPAN&gt;Alfresco.DocListTree,&amp;nbsp;&lt;SPAN&gt;Alfresco.module.DoclibGlobalFolder&lt;/SPAN&gt;. When it comes to&amp;nbsp;&lt;SPAN&gt;Alfresco.DocListTree it was quite easy. E.g. i&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;n tree.js&amp;nbsp;I found&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;onNodeClicked method and then I created custom component Alfresco.CustomDocListTree:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #f6f6f6; background-color: #1c1c1c; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #66d9ee;"&gt;YAHOO&lt;/SPAN&gt;&lt;SPAN style="color: #f92772;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #66d9ee;"&gt;extend&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #66d9ee;"&gt;Alfresco&lt;/SPAN&gt;&lt;SPAN style="color: #f92772;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a7e22e;"&gt;CustomDocListTree&lt;/SPAN&gt;&lt;SPAN style="color: #f92772;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ee;"&gt;Alfresco&lt;/SPAN&gt;&lt;SPAN style="color: #f92772;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a7e22e;"&gt;DocListTree&lt;/SPAN&gt;&lt;SPAN style="color: #f92772; "&gt;, {&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE style="color: #f6f6f6; background-color: #1c1c1c; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #a7e22e;"&gt;onNodeClicked&lt;/SPAN&gt;&lt;SPAN&gt;: function&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #fe9720;"&gt;args&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ee;"&gt;Alfresco&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a7e22e;"&gt;CustomDocListTree&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #66d9ee;"&gt;superclass&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a7e22e;"&gt;onNodeClicked&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a7e22e;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;this, &lt;/SPAN&gt;&lt;SPAN style="color: #fe9720;"&gt;args&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;   // custom logic&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f9faf4;"&gt;}&lt;BR /&gt;...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Next I extended DocLib Tree WebScript using custom tree.get.js and tree.get.html.ftl. After that I can use Alfresco.CustomDocListTree instead of Alfresco.DocListTree component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem begun when I would like to extend&amp;nbsp;&lt;SPAN&gt;Alfresco.module.DoclibGlobalFolder component and use them in whole Share application (e.g. in copy / move to action). I was trying to extend DocLib Actions Common WebScript, global-folder WebScript without any success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will be grateful for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2019 14:24:12 GMT</pubDate>
    <dc:creator>mgralien</dc:creator>
    <dc:date>2019-03-28T14:24:12Z</dc:date>
    <item>
      <title>How to extend Alfresco.module.DoclibGlobalFolder component?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-module-doclibglobalfolder-component/m-p/65362#M22120</link>
      <description>Hello,I wolud like to extend / modify functionality of every component which uses&amp;nbsp;YAHOO.widget.Treeview e.g.&amp;nbsp;Alfresco.DocListTree,&amp;nbsp;Alfresco.module.DoclibGlobalFolder. When it comes to&amp;nbsp;Alfresco.DocListTree it was quite easy. E.g. in tree.js&amp;nbsp;I found&amp;nbsp;onNodeClicked method and then I created custom compo</description>
      <pubDate>Thu, 28 Mar 2019 14:24:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-module-doclibglobalfolder-component/m-p/65362#M22120</guid>
      <dc:creator>mgralien</dc:creator>
      <dc:date>2019-03-28T14:24:12Z</dc:date>
    </item>
  </channel>
</rss>

