Need to remove placeholder from search box of faceted seach

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Need to remove placeholder from search box of faceted seach

Hi

I need to remove existing placeholder i.e "Search files,people,sites" from search box of faceted search.

Can you please help.

Thank you in advance.

2 Replies
Highlighted
Senior Member II

Re: Need to remove placeholder from search box of faceted seach

Hi,

Use Module Deployment approach and override property using share-header.get.js file.

Create xxx.xml file within /site-data/extension folder and write code for module extension.

<extension>
  <modules>
    <module>
      <id>Share Search  Header</id>
      <version>1.0</version>
      <auto-deploy>true</auto-deploy>  
      <customizations>
        <customization>
          <targetPackageRoot>org.alfresco.share.header</targetPackageRoot>
          <sourcePackageRoot>com.alfresco.share.header.extension</sourcePackageRoot> // This package could be your package
        </customization>
      </customizations>
    </module>
  </modules>
</extension>

Create share-header.get.js file within sourcePackage and write below code.

var searchBox = widgetUtils.findObject(model.jsonModel.widgets, "id", "HEADER_SEARCH");
searchBox.config.placeholder= "";

 

Thanks & Regards,
Sanjay
Highlighted
Member II

Re: Need to remove placeholder from search box of faceted seach

Hi Sanjay,

Thank you for replying.

I have tried this way already but it is not working on faceted-search Search Box.

Is there any other way to do thus.?