Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Granite.author.ui.assetFinder - Customization

Avatar

Level 7

Hi,

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:

Screen Shot 2018-12-13 at 12.50.52 PM.png

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"];

etc

This kind of works, but looks hacky!

Is there another, cleaner way to hide/disable/remove OOTB assetFinders?

Thanks,

Jim

1 Reply

Avatar

Community Advisor

Hi,

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



Arun Patidar