Extending Components | Community
Skip to main content
September 12, 2022
Solved

Extending Components

  • September 12, 2022
  • 2 replies
  • 1541 views

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.
Best answer by ksh_ingole7

Hi @christianm9916 

 

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

 

Thanks

2 replies

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
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?

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...

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

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...

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