Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to create Group Predicate in Asset Admin Search Rail

Avatar

Level 7

I have to create a group predicate in Search Filter Similar to Status as shown in below screenshot

Ronnie09_0-1695734501425.png

But while I edit Search Rail (AEM Sites | Custom Search Facets) I can't see group predicate options to drag to drop. And I don't want to add via Crx/de or send the predicate via the code.

 

Because If I add the group predicate via code/crx; then in future if we will add the filter manually from the AEM Sites | Custom Search Facets then it group predicated created via crx will be deleted. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You must overlay this functionality to customize it, once you customize it with the changes you want, you need to version this(put in your codebase) so that every time your code is deployed this functionality is deployed along with it and nothing gets deleted. 

You can learn more here about overlay and extending:
https://levelup.gitconnected.com/aem-5-best-practices-for-overlays-4babcbbb8a80 

And here you can find something very very similar to what you are trying to achieve in this example:

https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/customizing-p... 

https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-assetfinder-flickr/tree/master/src/... 

 

Note: This is a customization that needs to be implemented by a developer 



Esteban Bustamante

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

You must overlay this functionality to customize it, once you customize it with the changes you want, you need to version this(put in your codebase) so that every time your code is deployed this functionality is deployed along with it and nothing gets deleted. 

You can learn more here about overlay and extending:
https://levelup.gitconnected.com/aem-5-best-practices-for-overlays-4babcbbb8a80 

And here you can find something very very similar to what you are trying to achieve in this example:

https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/customizing-p... 

https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-assetfinder-flickr/tree/master/src/... 

 

Note: This is a customization that needs to be implemented by a developer 



Esteban Bustamante

Avatar

Level 7

If I push the change via the code then in future if I have to create a new predicate I have push that via the code, which is working 
but, 
When I tried creating group predicate from code base then I logged into AEM and creating a new search predicate manually via AEM console (Tools > General > Search Forms > Assets Admin Search Rail, then tap Edit) then the group predicate pushed via code gets deleted.

Avatar

Community Advisor

Hi @Ronnie09 , 
i feel your struggle.
As soon as your modifications are a bit more than the UI wants you to go, you have to switch over to CRXDE and code pushing. When you are in that cold water for a bit, it is actually ok. 
You can add simple things via the ui, then export this part into your code before you have to push your changes by code regardless. Embrace this limitation and do it with the CRXDE.
Many more options are now available to you.

Avatar

Administrator

@Ronnie09 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni