- Create the corresponding node under /apps
- Create a property sling:hideResource
- type: Boolean
- value: true
Hello there, I am new for Customization of AEM Touch Ui, At this time, I wanna Disable the "OmniSearchButton" that is found on the Site and Asset Toolbar.
thanks for your support
Abeje
Views
Replies
Total Likes
Omnisearch button is enabled from the following location:
/libs/granite/ui/content/shell/header/actions/search
So, you can overlay the actions node and delete the search node from that overlay.
Quick way to test is remove the search node from "/libs/granite/ui/content/shell/header/actions" but make sure you create a package of the node structure before deleteing the node and reinstall the package after testing as deleting nodes from libs directory is not recommended.
Views
Replies
Total Likes
I would not recommed deleting any node. Instead use Sling Resource Merger, The node and its children are defined in /libs, but not required in the /apps overlay/override.
so add sling:hideResource in /apps/granite/ui/content/shell/header/actions/search
More info at Using the Sling Resource Merger in AEM
The resource merger provides the following properties:
These properties affect how the corresponding/original resources/properties (from /libs) are used by the overlay/override (often in /apps).
it works fine
thank u so much Arun
Views
Replies
Total Likes