I have created a custom assetFinder based on OOTB functionality. Which works just fine.
However, I would like to remove one or two of the OOTB assetFinder options (as my custom assetFinder is an enhancement to one of the OOTB assetFinders)
For reference the asset finder options i am referring too are shown here:
Is this possible?
I have managed to doing this in my custom asset finder code, by first deleting the OOTB assetFinders from the registry:
delete author.ui.assetFinder.registry["Content Fragments"];
delete author.ui.assetFinder.registry["Design Packages"];
delete author.ui.assetFinder.registry["Experience Fragments"];
This kind of works, but looks hacky!
Is there another, cleaner way to hide/disable/remove OOTB assetFinders?
You may need to overlay /libs/wcm/core/content/editor/jcr:content/sidepanels/edit/items/tabs/items/assetsTab/items/filterPanel/items/search/items/searchpanel/items and hide options using sling:hideChildren (String or String)
Using the Sling Resource Merger in AEM