Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Override core component dialog fields

Avatar

Level 2

I have extended the List core component and we have added a custom field, that I have wrapped with a header/well to group the fields together. However, the fields at the top of the screen shot are coming in from the core component -- can I turn those off somehow? 

 

list-component.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Hi @majohns0321,

       We can use sling resource merger to hide those properties.

 

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/sling-resource-mer...

 

 

 

 

Avatar

Level 2


Unfortunately I have not been able to get the Sling Resource Merger to work. I applied sling:hideResource to the field, but that just hides the one I want to keep. Using slide:hideChildren didn't work either - perhaps I was putting it on the wrong node.

 

In the core List component, we want to group the existing fields of orderBy and sortOrder, with the custom field we are adding (feature), so they are in that shaded gray area. How can we add this formatting to the dialog while suppressing the dialog from the extended component? Our CRX fields are the ones that are in the gray area. How can I remove the fields in the white area without losing the ones in the gray?