Nested Components on Child Page Disappearing on Parent's Edit & Refresh - Inheritance/LiveCopy | Community
Skip to main content
September 18, 2023

Nested Components on Child Page Disappearing on Parent's Edit & Refresh - Inheritance/LiveCopy

  • September 18, 2023
  • 2 replies
  • 1077 views

I wanted to ask about the expectation of nested components with LiveCopy/Blueprint configurations: 

I have a Blueprint (Parent) page that has a nested component structure like so: 

------- Component 1 (Parent)
-------------- Component 2 (Child 1)


Then I have a Livecopy Child Page that inherits from Parent and initially looks the same: 

Then on Child Page (Livecopy of Blueprint):
------- Component 1 (Parent)
-------------- Component 2 (Child 1)

Then on the child page, I break inheritance of Component 2, delete it and copy from another page a 3rd Component to replace it, so it looks like this on the Child Page:
------- Component 1 (Parent)
-------------- Placeholder Message for Child 2 that was Deleted
-------------- Component 3 (Child 2)

Now, I go back to the Parent page, and add a new component. However, if I return to the Child Page, and refresh the page - Component 3 is gone, but the new component is added.  Now my page structures looks like this: 
Parent page: 
------- Component 1 (Parent)
-------------- Component 2 (Child 1 within Parent)
------- Component 4
 
Child Page:
------- Component 1 (Parent)
-------------- Placeholder Message for Child 1 that was Deleted
------- Component 4

I'm wondering what the proper authoring experience should be. Is it suggested that the Parent Component (Component 1) should have inheritance broken on the Child Page before adding new child components? Or is there a specific way to configure our Blueprint/Livecopy to have this functionality?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
September 19, 2023

Hi,

What does your Component 1 (Parent) component looks like? Is this a container component or a normal component?

Arun Patidar
September 19, 2023

Hey there! So the code base has components that we use as 'containers' but only some of them have the 

cq:isContainer value set to true.  

Should I expect different behaviour based on this value? 

Thank you! 
arunpatidar
Community Advisor
Community Advisor
September 20, 2023

The container component(Parent1) should have a cq:isContainer property saved

cq:isContainer = {Boolean}true

 Can you try with parsys same test cases, just make usre if we are missing here anything due to custom component or is it a OOTB behaviour/bug.

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
September 21, 2023

@breebobaggins Did you find the suggestion from @arunpatidar helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni