I would like to add myComponent to two or more componentGroup,
How can I do that?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @MaynorSong
A component can be part of at most one Component Group (Hidden or any Group). If you want to have same component two groups, it is not possible directly but here is my suggestion.
I suggest to do this only if it is highly required, because this way it gives an impression like same component is under two groups but they are not actually one component. We are trying to achieve 100% inheritance here.
Note: sling:resourceType for these components will not be same once authored on a page
AG
@MaynorSong you cannot do it in AEM.
May I know why do you want to do it so that we may suggest you a better way.
Hi @MaynorSong
A component can be part of at most one Component Group (Hidden or any Group). If you want to have same component two groups, it is not possible directly but here is my suggestion.
I suggest to do this only if it is highly required, because this way it gives an impression like same component is under two groups but they are not actually one component. We are trying to achieve 100% inheritance here.
Note: sling:resourceType for these components will not be same once authored on a page
AG
Why don't create this component with common group
componentGroup="common-a group"
or another option to proxy MyComponent as MyComponent2
Views
Likes
Replies