<?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: Adding a new button to Aikau Search Component in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71939#M23414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;thanks to the help &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="97982" data-username="krutik.jayswal" href="https://community.alfresco.com/people/krutik.jayswal" rel="nofollow noopener noreferrer"&gt;Krutik Jayswal&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;So the correct way to do this particular customisation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create AMP o JAR Share project as usual;&lt;/P&gt;&lt;P&gt;2) create a new extension module, for exampe:&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="font-style: italic;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;xml version&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;encoding&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="UTF-8"&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;extension&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;modules&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;module&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;Add Export Excel - Search Page&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;1.0&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;auto-deploy&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;auto-deploy&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customizations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customization&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;targetPackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.alfresco.share.pages.faceted-search&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;targetPackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;sourcePackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;YOUR_PACKAGE.share.pages.faceted-search&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;sourcePackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customization&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customizations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;module&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;modules&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;extension&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;3) add your JS file in the site-webscript project directory to override the &lt;/SPAN&gt;faceted-search.js file.&lt;BR /&gt;Keep in mind to get existing widgets or push newone; avoid to modify directly the source code.&lt;BR /&gt;For example, for the specific question:&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;searchResultsMenuBar&amp;nbsp; &lt;/SPAN&gt;= widgetUtils.findObject(model.jsonModel, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"id"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"SEARCH_RESULTS_MENU_BAR"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;searchResultsMenuBar&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;config&lt;/SPAN&gt;.widgets.&lt;SPAN style="color: #7a7a43;"&gt;push&lt;/SPAN&gt;({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;id&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"YOUR_BUTTON"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;name&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"alfresco/buttons/AlfButton"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;config&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;label &lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"old"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;publishTopic &lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GIVE_NAME_TOPIC"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;});&lt;/PRE&gt;4) package and deploy the AMP/JAR. You'll your new fantastic button... Eureka!&lt;BR /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/19297_ScreenHunter_1957 Feb. 15 11.45.jpg" style="width: 620px; height: 93px;" /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 10:48:14 GMT</pubDate>
    <dc:creator>francesco_forna</dc:creator>
    <dc:date>2018-02-15T10:48:14Z</dc:date>
    <item>
      <title>Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71932#M23407</link>
      <description>Dear All,could you suggest me how to add a new button on the search results page? The Search is an Aikau component and I'm looking to add a new action button to call a new repo webscript.Could you help me to solve my problem?Thank you,Regards.Francesco.</description>
      <pubDate>Wed, 14 Feb 2018 16:45:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71932#M23407</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2018-02-14T16:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71933#M23408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found an existent and old thread about the same problem but there is no effective solution published yet:&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/235706"&gt;Adding a new button to Aikau Search Component&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that thread&amp;nbsp;&lt;B&gt;Dave Draper&lt;/B&gt; said (2013!!!) that the search results page&amp;nbsp;is the most tricky to customize but I'm wondering if also in 5.x version it is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody&amp;nbsp;have&amp;nbsp;some good hints about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 08:21:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71933#M23408</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2018-02-15T08:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71934#M23409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;faceted-search.get.js is the file which is responsible for rendering search result page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to extend above file and add the aikau widget in json configuration..&lt;/P&gt;&lt;P&gt;For handling the onclick event , aiaku is using pubsub mechanism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning of Pubsub is publication and subscript.In the widget configuration you need to add publishTopic, and you need to subscribe it inside the javascript service file(it is a dijit file).Refer below code for creating aikau button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #24292e; background-color: #f6f8fa; margin-top: 0px; margin-bottom: 16px; padding: 16px;"&gt;&lt;CODE style="background: transparent; border: 0px; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name : "alfresco/buttons/AlfButton",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config : {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label : "old",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; publishTopic : "&lt;STRONG&gt;GIVE_NAME_TOPIC&lt;/STRONG&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; } &lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer below link for subscripton of a topic.If you take a look on&amp;nbsp;&lt;SPAN style="color: #4d4d4c; background-color: #f9f9f9;"&gt;registerSubscriptions function on below file link,that shows how you can subscribe to a publish topic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/CrudService.js.html" title="https://dev.alfresco.com/resource/docs/aikau-jsdoc/CrudService.js.html" rel="nofollow noopener noreferrer"&gt;JSDoc: Source: services/CrudService.js&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:08:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71934#M23409</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-15T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71935#M23410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Krutik. So we have to modify directly the faceted-search.get.js source code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:47:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71935#M23410</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2018-02-15T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71936#M23411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you should extend it, how to extend this is defined in below links.its not the exact example.But it demonstrates how you can extend javascript controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/4.1/tasks/tu-share-JS-customize.html" title="https://docs.alfresco.com/4.1/tasks/tu-share-JS-customize.html" rel="nofollow noopener noreferrer"&gt;5. Customize Alfresco Share JavaScript controllers | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/5.1/concepts/dev-extensions-share-override-ootb-aikau-pages.html" title="https://docs.alfresco.com/5.1/concepts/dev-extensions-share-override-ootb-aikau-pages.html" rel="nofollow noopener noreferrer"&gt;Modifying Out-of-the-box Aikau Pages | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71936#M23411</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-15T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71937#M23412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok ok,&lt;/P&gt;&lt;P&gt;I mean that we have to replace the original faceted-search.get.js by adding our custom logic. For example, if we have to add the button to SEARCH_RESULTS_MENU_BAR, we'll have to override this widget by adding our piece of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:13:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71937#M23412</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2018-02-15T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71938#M23413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:35:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71938#M23413</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-15T10:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new button to Aikau Search Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71939#M23414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;thanks to the help &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="97982" data-username="krutik.jayswal" href="https://community.alfresco.com/people/krutik.jayswal" rel="nofollow noopener noreferrer"&gt;Krutik Jayswal&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;So the correct way to do this particular customisation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create AMP o JAR Share project as usual;&lt;/P&gt;&lt;P&gt;2) create a new extension module, for exampe:&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="font-style: italic;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;xml version&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;encoding&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="UTF-8"&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;extension&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;modules&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;module&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;Add Export Excel - Search Page&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;1.0&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;auto-deploy&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;auto-deploy&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customizations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customization&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;targetPackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.alfresco.share.pages.faceted-search&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;targetPackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;sourcePackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;YOUR_PACKAGE.share.pages.faceted-search&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;sourcePackageRoot&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customization&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;customizations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;module&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;modules&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;extension&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;3) add your JS file in the site-webscript project directory to override the &lt;/SPAN&gt;faceted-search.js file.&lt;BR /&gt;Keep in mind to get existing widgets or push newone; avoid to modify directly the source code.&lt;BR /&gt;For example, for the specific question:&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;searchResultsMenuBar&amp;nbsp; &lt;/SPAN&gt;= widgetUtils.findObject(model.jsonModel, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"id"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"SEARCH_RESULTS_MENU_BAR"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;searchResultsMenuBar&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;config&lt;/SPAN&gt;.widgets.&lt;SPAN style="color: #7a7a43;"&gt;push&lt;/SPAN&gt;({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;id&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"YOUR_BUTTON"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;name&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"alfresco/buttons/AlfButton"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;config&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;label &lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"old"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;publishTopic &lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GIVE_NAME_TOPIC"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;});&lt;/PRE&gt;4) package and deploy the AMP/JAR. You'll your new fantastic button... Eureka!&lt;BR /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/19297_ScreenHunter_1957 Feb. 15 11.45.jpg" style="width: 620px; height: 93px;" /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-button-to-aikau-search-component/m-p/71939#M23414</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2018-02-15T10:48:14Z</dc:date>
    </item>
  </channel>
</rss>

