As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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.
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= "";
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.?