<?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 override the LiveSearch html? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96352#M28293</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I want to set LiveSearch.templateString by defining a custom searchbox (see the code below).&lt;/P&gt;&lt;P&gt;But LiveSearch.templateString is not a member of&amp;nbsp; the SearchBox class. It is defined as a separate class, when creating SearchBox (see&amp;nbsp;&lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/SearchBox.js.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dev.alfresco.com/resource/docs/aikau-jsdoc/SearchBox.js.html&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Is there a way to set templateString of LIveSearch using an override of SearchBox??&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Wybrand.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="nx"&gt;define&lt;/SPAN&gt;&lt;SPAN class="p"&gt;([&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"dojo/_base/declare"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="s2"&gt;"dojo/text!./templates/my-livesearch.html"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="s2"&gt;"alfresco/header/SearchBox"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],&lt;/SPAN&gt;
       &lt;SPAN class="kd"&gt;function&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;template&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;SearchBox&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
         &lt;SPAN class="k"&gt;return&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="p"&gt;([&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;SearchBox&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],{&lt;/SPAN&gt;
           &lt;SPAN class="na"&gt;postMixInProperties&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kd"&gt;function&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;my_searchBox__postMixInProperties&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(){&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;             // How to set LiveSearch.templateString since this is not a member of SearchBox?? &lt;BR /&gt;
           &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;
         &lt;SPAN class="p"&gt;});&lt;/SPAN&gt;
       &lt;SPAN class="p"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Oct 2019 18:19:08 GMT</pubDate>
    <dc:creator>wybrand</dc:creator>
    <dc:date>2019-10-07T18:19:08Z</dc:date>
    <item>
      <title>How to override the LiveSearch html?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96352#M28293</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I want to set LiveSearch.templateString by defining a custom searchbox (see the code below).&lt;/P&gt;&lt;P&gt;But LiveSearch.templateString is not a member of&amp;nbsp; the SearchBox class. It is defined as a separate class, when creating SearchBox (see&amp;nbsp;&lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/SearchBox.js.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dev.alfresco.com/resource/docs/aikau-jsdoc/SearchBox.js.html&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Is there a way to set templateString of LIveSearch using an override of SearchBox??&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Wybrand.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="nx"&gt;define&lt;/SPAN&gt;&lt;SPAN class="p"&gt;([&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"dojo/_base/declare"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="s2"&gt;"dojo/text!./templates/my-livesearch.html"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="s2"&gt;"alfresco/header/SearchBox"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],&lt;/SPAN&gt;
       &lt;SPAN class="kd"&gt;function&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;template&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;SearchBox&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
         &lt;SPAN class="k"&gt;return&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="p"&gt;([&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;SearchBox&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],{&lt;/SPAN&gt;
           &lt;SPAN class="na"&gt;postMixInProperties&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kd"&gt;function&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;my_searchBox__postMixInProperties&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(){&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;             // How to set LiveSearch.templateString since this is not a member of SearchBox?? &lt;BR /&gt;
           &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;
         &lt;SPAN class="p"&gt;});&lt;/SPAN&gt;
       &lt;SPAN class="p"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Oct 2019 18:19:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96352#M28293</guid>
      <dc:creator>wybrand</dc:creator>
      <dc:date>2019-10-07T18:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the LiveSearch html?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96353#M28294</link>
      <description>&lt;P&gt;Due to nesting, there is no way to set the templateString in LiveSearch. But you could override the postCreate of SearchBox to customise the nested LiveSearch widget after its creating - that is what I did in a project a few years ago.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 20:38:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96353#M28294</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-10-07T20:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the LiveSearch html?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96354#M28295</link>
      <description>&lt;P&gt;Great idea. It worked.&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Wybrand.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 11:55:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-override-the-livesearch-html/m-p/96354#M28295</guid>
      <dc:creator>wybrand</dc:creator>
      <dc:date>2019-10-08T11:55:58Z</dc:date>
    </item>
  </channel>
</rss>

