Trouble extending a component | Community
Skip to main content
Level 2
February 8, 2023
Solved

Trouble extending a component

  • February 8, 2023
  • 1 reply
  • 635 views

I'm trying to extend a component, but my new marquee.html updates aren't rendering on the page. The dialog updates are okay. Here's what I have:

Parent component

marquee
> _cq_dialog
> clientlibs
_cq_editConfig.xml
.content.xml
marquee.html

Child component

marquee2
> _cq_dialog (All these updates are working.)
.content.xml 
marquee.html (None of these updates are working.)

Shouldn't any changes in the child component's marquee.html file override the parent file? I've been researching to see if I missed a step and everything seems to be in order, but apparently I'm missing something. Thanks for any help.

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 SantoshSai

Hi @kayest ,

In your child component rename html file from marquee.html to marquee2.html. (As your component node name is marquee2) For more details please refer Sling Resource Resolution article. eg. https://aemgeeks.wordpress.com/2017/07/31/sling-resource-resolution-sling-request-processing/

Hope that helps you!

Regards,

Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
February 8, 2023

Hi @kayest ,

In your child component rename html file from marquee.html to marquee2.html. (As your component node name is marquee2) For more details please refer Sling Resource Resolution article. eg. https://aemgeeks.wordpress.com/2017/07/31/sling-resource-resolution-sling-request-processing/

Hope that helps you!

Regards,

Santosh

Santosh Sai