Extending Components | Community
Skip to main content
Level 2
Sep 12, 2022 8:52 PM UTC
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
New Participant
Sep 14, 2022 5:45 AM UTC

Hi @christianm9916 

 

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

 

Thanks

5 replies

ksh_ingole7
New Participant
Sep 13, 2022 3:53 AM UTC

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
Sep 13, 2022 10:27 PM UTC

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
ksh_ingole7Accepted solution
New Participant
Sep 14, 2022 5:45 AM UTC

Hi @christianm9916 

 

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

 

Thanks

Translate
BrianKasingli
New Participant
Sep 13, 2022 3:44 AM UTC

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
Sep 13, 2022 10:30 PM UTC

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