<?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: How to add a button/component on header of documentlist of Share in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73106#M23607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For that you have to to override toolbar.js of documentlibrary.&lt;/P&gt;&lt;P&gt;Check create new folder action.same way you can create.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 04:34:57 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-01-18T04:34:57Z</dc:date>
    <item>
      <title>How to add a button/component on header of documentlist of Share</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73103#M23604</link>
      <description>Hi, i need to add a new customize "Upload Button" on the right of the standard on the component DocumentList of Share.The javascript and the alfresco code of backend is not a big deal, but i find hard time to understand how can i show the button on the share component "DocumentList Header".Here some</description>
      <pubDate>Tue, 15 Jan 2019 07:51:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73103#M23604</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2019-01-15T07:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a button/component on header of documentlist of Share</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73104#M23605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)Create xxx.xml file inside /alfresco/we-extension/site-data/extensions and paste below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;extension&amp;gt;&lt;BR /&gt; &amp;lt;modules&amp;gt;&lt;BR /&gt; &amp;lt;module&amp;gt;&lt;BR /&gt; &amp;lt;id&amp;gt;ARMS Custom Document Lirary Button&amp;lt;/id&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;auto-deploy&amp;gt;true&amp;lt;/auto-deploy&amp;gt;&lt;BR /&gt; &amp;lt;customizations&amp;gt;&lt;BR /&gt; &amp;lt;customization&amp;gt;&lt;BR /&gt; &amp;lt;targetPackageRoot&amp;gt;org.alfresco.components.documentlibrary&lt;BR /&gt; &amp;lt;/targetPackageRoot&amp;gt;&lt;BR /&gt; &amp;lt;sourcePackageRoot&amp;gt;com.arms.components.documentlibrary&lt;BR /&gt; &amp;lt;/sourcePackageRoot&amp;gt;&lt;BR /&gt; &amp;lt;/customization&amp;gt;&lt;BR /&gt; &amp;lt;/customizations&amp;gt;&lt;BR /&gt; &amp;lt;/module&amp;gt;&lt;BR /&gt; &amp;lt;/modules&amp;gt;&lt;BR /&gt;&amp;lt;/extension&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2)Create&amp;nbsp;documentlist-v2.get.html.ftl inside&amp;nbsp;&lt;SPAN&gt;/alfresco/we-extension/site-webscript/com/arms/components/documentlibrary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;@markup id="arms-documentlist-dependencies" target="js" action="after" scope="global"&amp;gt; &lt;BR /&gt; &amp;lt;@script type="text/javascript" src="${url.context}/res/js/components/documentlibrary/extensions/arms-documentlist.js" group="documentlibrary"/&amp;gt; &lt;BR /&gt; &amp;lt;/@markup&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;SPAN&gt;Create documentlist-v2.get.js&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;inside&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/alfresco/we-extension/site-webscript/com/arms/components/documentlibrary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;for (var i=0; i&amp;lt;model.widgets.length; i++) {&lt;/P&gt;&lt;P&gt;if (model.widgets[i].id == "DocumentList") {&lt;/P&gt;&lt;P&gt;model.widgets[i].name = "ARMS.components.DocumentList";&lt;/P&gt;&lt;P&gt;} &lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Create&amp;nbsp;arms-documentlist.js inside web/js/components/documentlibrary/extensions/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (typeof ARMS == undefined || !ARMS) {&lt;/P&gt;&lt;P&gt;var ARMS = {};&lt;BR /&gt; }&lt;BR /&gt; if (!ARMS.components) {&lt;BR /&gt; ARMS.components = {};&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; (function() {&lt;BR /&gt; var $siteURL = Alfresco.util.siteURL;&lt;BR /&gt; ARMS.components.DocumentList = function CustomDocumentList_constructor(htmlId) {&lt;BR /&gt; ARMS.components.DocumentList.superclass.constructor.call(this, htmlId);&lt;BR /&gt; return this;&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; YAHOO.extend(ARMS.components.DocumentList, Alfresco.DocumentList,&lt;BR /&gt; {&lt;BR /&gt; onReady: function CustomDL_onReady()&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;ARMS.components.DocumentList.superclass.onReady.call(this);&lt;BR /&gt; var elms=Dom.getElementsByClassName("left");&lt;BR /&gt; var spn=document.createElement('span');&lt;BR /&gt; var btn = document.createElement('button');&lt;BR /&gt; var t = document.createTextNode("Computer &amp;amp; Mobile");&lt;BR /&gt; btn.appendChild(t);&lt;BR /&gt; btn.onclick= this.onButtonClick;&lt;BR /&gt; spn.setAttribute('class','yui-button yui-push-button');&lt;BR /&gt; spn.appendChild(btn);&lt;BR /&gt; elms[0].appendChild(spn);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; var spn=document.createElement('span');&lt;BR /&gt; var btn = document.createElement('button');&lt;BR /&gt; var t = document.createTextNode("Others");&lt;BR /&gt; btn.appendChild(t);&lt;BR /&gt; btn.onclick= this.onButtonClick1;&lt;BR /&gt; spn.setAttribute('class','yui-button yui-push-button');&lt;BR /&gt; spn.appendChild(btn);&lt;BR /&gt; elms[0].appendChild(spn);&lt;BR /&gt; },&lt;BR /&gt; onButtonClick: function CustomDL_onButtonClick(e, p_obj)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;})();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;Contcentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 05:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73104#M23605</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-01-16T05:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a button/component on header of documentlist of Share</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73105#M23606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ty very much Sanja,&lt;/P&gt;&lt;P&gt;now i can see the button on the "documentlist" of the the site, but i still can't see the button on the "documentlist" of the repository page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the end i can see on the url&amp;nbsp; &lt;A class="link-titled" href="https://localhost:8443/share/page/site/swsdp/documentlibrary" title="https://localhost:8443/share/page/site/swsdp/documentlibrary" rel="nofollow noopener noreferrer"&gt;https://localhost:8443/share/page/site/swsdp/documentlibrary&lt;/A&gt;&amp;nbsp; but i can't see on the url &lt;A class="link-titled" href="https://localhost:8443/share/page/repository" title="https://localhost:8443/share/page/repository" rel="nofollow noopener noreferrer"&gt;https://localhost:8443/share/page/repository&lt;/A&gt; there is some other configuration i must do for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 22:07:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73105#M23606</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2019-01-17T22:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a button/component on header of documentlist of Share</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73106#M23607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For that you have to to override toolbar.js of documentlibrary.&lt;/P&gt;&lt;P&gt;Check create new folder action.same way you can create.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 04:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73106#M23607</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-01-18T04:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a button/component on header of documentlist of Share</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73107#M23608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone have the same problem of mine modify the toolbar.js seem not to work (or most likely it's me doing something wrong ),a extension of the Sanja solution can be found on this project &lt;A class="jivelink11" href="https://github.com/angelborroy/alfresco-add-menu-sample" title="https://github.com/angelborroy/alfresco-add-menu-sample" rel="nofollow noopener noreferrer"&gt;https://github.com/angelborroy/alfresco-add-menu-sample&lt;/A&gt; where i modify repo,myfiles and sharedfile template and javascript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2019 14:53:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-a-button-component-on-header-of-documentlist-of-share/m-p/73107#M23608</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2019-01-19T14:53:10Z</dc:date>
    </item>
  </channel>
</rss>

