Skip to main content
Level 2
September 12, 2022
Solved

Extending Components

Hello everyone,

 

I am extending an existing component using sling:resourceSuperType, however when I look at the options of the component in the website they are different from the original component, Could anyone help me solve this? 

 

 

How do I get this option in the extended version?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ksh_ingole7
ksh_ingole7Accepted solution
Community Advisor
September 14, 2022

Hi @christianm9916 

 

Kindly check the inheritance hierarchy. The component must be inheriting the properties from some other component. 

 

Thanks

5 replies

BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
September 13, 2022

This is probably because you overlay component has it's own Touch UI configuration. What's in the component's folder that has the property of sling:resourceSuperType?

Translate
Level 2
September 13, 2022

Hi thank you so much for helping me. That component's folder has the _cq_dialog folder, the _cq_editConfig.xml and the content.xml. The weird thing is that I also tried just copying the entire folder and the option still does not come up, and I tried in someone else's local instance and it came up...

Translate
ksh_ingole7
Community Advisor
Community Advisor
September 13, 2022

Hi @christianm9916 

 

Go to the extended component and check the cq:editConfig node. This node has cq:actions property which defines the actions that a component can do.

 

 

Set it similar to the component you are trying to extend. 

 

In you case, I think the editConfig of extended component are overriding.

 

Thanks

Translate
Level 2
September 13, 2022

Hi, thank you so much for trying to help me. I checked in both of the components and neither one have the cq:actions property in the cq:editConfig node...

Translate
ksh_ingole7
Community Advisor
ksh_ingole7Community AdvisorAccepted solution
Community Advisor
September 14, 2022

Hi @christianm9916 

 

Kindly check the inheritance hierarchy. The component must be inheriting the properties from some other component. 

 

Thanks

Translate