Expand my Community achievements bar.

SOLVED

Extending component style policies

Avatar

Level 3

Hi Team,

I extended component A to component B, so, I have style policies for component A how to get that style policies in component B.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

To extend component A to component B and inherit the style policies of component A, you can proceed as follows:

1. In component B, ensure that you've configured the sling:resourceSuperType property to reference the resource type of component A.

2. By extending component B from component A using the sling:resourceSuperType, component B will automatically inherit the style policies defined for component A.

3. You can confirm this inheritance by checking the Component Policy section in the Edit Template.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

To extend component A to component B and inherit the style policies of component A, you can proceed as follows:

1. In component B, ensure that you've configured the sling:resourceSuperType property to reference the resource type of component A.

2. By extending component B from component A using the sling:resourceSuperType, component B will automatically inherit the style policies defined for component A.

3. You can confirm this inheritance by checking the Component Policy section in the Edit Template.

Avatar

Administrator

@KKeerthi 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