I have to create a group predicate in Search Filter Similar to Status as shown in below screenshot
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.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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:
Note: This is a customization that needs to be implemented by a developer
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:
Note: This is a customization that needs to be implemented by a developer
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.
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.
@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.
Views
Replies
Total Likes