<?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 What is the right way to edit an existing file in Aikau? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-right-way-to-edit-an-existing-file-in-aikau/m-p/31892#M13536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to edit the SearchBox.js file in Aikau (add a part of code in it), located in alfresco/header folder of the Aikau jar. I have created a share amp with the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;src\main\amp\config\alfresco\web-extension\site-data\extensions\aikau-searchbox-extension.xml&lt;/LI&gt;&lt;/UL&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;History search extension&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.share.header&amp;lt;/targetPackageRoot&amp;gt;&lt;BR /&gt; &amp;lt;sourcePackageRoot&amp;gt;customSearchBox&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;configurations&amp;gt;&lt;BR /&gt; &amp;lt;config evaluator="string-compare" condition="WebFramework" replace="false"&amp;gt;&lt;BR /&gt; &amp;lt;web-framework&amp;gt;&lt;BR /&gt; &amp;lt;dojo-pages&amp;gt;&lt;BR /&gt; &amp;lt;packages&amp;gt;&lt;BR /&gt; &amp;lt;package name="customSearchBox" location="js/customSearchBox"/&amp;gt;&lt;BR /&gt; &amp;lt;/packages&amp;gt;&lt;BR /&gt; &amp;lt;/dojo-pages&amp;gt;&lt;BR /&gt; &amp;lt;/web-framework&amp;gt;&lt;BR /&gt; &amp;lt;/config&amp;gt;&lt;BR /&gt; &amp;lt;/configurations&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;src\main\amp\config\alfresco\web-extension\site-webscripts\customSearchBox\share-header.get.js&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;var searchbox = widgetUtils.findObject(model.jsonModel.widgets, "id", "HEADER_SEARCH");&lt;BR /&gt;if (searchbox != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Change the widget to our custom menu...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchbox.name = "customSearchBox/SearchBox";&lt;BR /&gt;}&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;src\main\amp\web\js\customSearchBox&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This folder contains all the files of the folder js\aikau\1.0.8.1\alfresco\header of the aikau.jar with the SearchBox.js having the required changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution works fine as it does what I want, but I don't think it is the correct one as I have to accompany the rest of the header files in my amp. Is there another way to do this aikau edit, so I don't have to copy and include the rest of the header files in my amp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 11:28:35 GMT</pubDate>
    <dc:creator>hackerkok</dc:creator>
    <dc:date>2017-06-02T11:28:35Z</dc:date>
    <item>
      <title>What is the right way to edit an existing file in Aikau?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-right-way-to-edit-an-existing-file-in-aikau/m-p/31892#M13536</link>
      <description>I want to edit the SearchBox.js file in Aikau (add a part of code in it), located in alfresco/header folder of the Aikau jar. I have created a share amp with the below:src\main\amp\config\alfresco\web-extension\site-data\extensions\aikau-searchbox-extension.xml&amp;lt;extension&amp;gt; &amp;lt;modules&amp;gt; &amp;lt;m</description>
      <pubDate>Fri, 02 Jun 2017 11:28:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-right-way-to-edit-an-existing-file-in-aikau/m-p/31892#M13536</guid>
      <dc:creator>hackerkok</dc:creator>
      <dc:date>2017-06-02T11:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the right way to edit an existing file in Aikau?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-right-way-to-edit-an-existing-file-in-aikau/m-p/31893#M13537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the official Aikau tutorial here&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/About.md" title="https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/About.md" rel="nofollow noopener noreferrer"&gt;Aikau/About.md at master · Alfresco/Aikau · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I believe this discussion can&amp;nbsp;help you&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/215244"&gt;Customizing the aikau search placeholder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:15:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-right-way-to-edit-an-existing-file-in-aikau/m-p/31893#M13537</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-06-08T15:15:15Z</dc:date>
    </item>
  </channel>
</rss>

