Granite.author.ui.assetFinder - Customization

James_R_Green

13-12-2018

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Arun_Patidar

MVP

13-12-2018

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