Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

Component level policy inheritance

Avatar

Level 2

Hey fellows, 

I have the following requirement to do, and I'm trying to find a easy method to solve it ( want to avoid boring, repetitive work) :

imagine that there are 100 components already created and for each component you need to have Style System options : Apply Padding and Remove Padding.

Now, in order to avoid implementing for each component policy this options, is there a way to have inheritance from, let's say, a base policy component ? 

 

Let me know what you think.

 

2 Replies

Avatar

Community Advisor

Hi @puscasd22398856 ,

What do you think about implementing such shared common component configuration at page level? so that author can set it up at page level and refer that configuration through Sling Model and pass it to each of the component.

Regards,

Santosh


Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 2

hi @SantoshSai

thanks for answering!

can you give me more details on how to implement this solution (this will be useful in the future).

For now, I used a groovy script in order to apply the policy to each component.

 

Regards,

Puscas