Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

To disable the OmniSearch button

Avatar

Avatar
Level 1
abejem73395465
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
abejem73395465
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
abejem73395465
Level 1

12-06-2019

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

Replies

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

13-06-2019

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.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

13-06-2019

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.

  1. Create the corresponding node under /apps
  2. Create a property sling:hideResource
    • type: Boolean
    • value:  true

so add sling:hideResource in /apps/granite/ui/content/shell/header/actions/search

More info at Using the Sling Resource Merger in AEM

Properties

The resource merger provides the following properties:

  • sling:hideProperties (String or String[])
    Specifies the property, or list of properties, to hide.
    The wildcard * hides all.
  • sling:hideResource (Boolean)
    Indicates whether the resources should be completely hidden, including its children.
  • sling:hideChildren (String or String[])
    Contains the child node, or list of child nodes, to hide. The properties of the node will be maintained.
    The wildcard * hides all.
  • sling:orderBefore (String)
    Contains the name of the sibling node that the current node should be positioned in front of.

These properties affect how the corresponding/original resources/properties (from /libs) are used by the overlay/override (often in /apps).

Avatar

Avatar
Level 1
abejem73395465
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
abejem73395465
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
abejem73395465
Level 1

13-06-2019

it works fine

thank u so much Arun