Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

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

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