Can not insert a component inside another | Community
Skip to main content
Xena_bcn
New Participant
May 9, 2016
Solved

Can not insert a component inside another

  • May 9, 2016
  • 4 replies
  • 3933 views

hi there

So my situation  is:

I have 3 components:

1st - parent

2nd -child

3rd - grandchild

1 and 2nd are dedined as container.

I could insert 2nd one inside 1st one. Using components attribute in   /etc/design/<app>/jcr:content/<page_template>/<paragraph>

I still have problem: I can not insert 3rd inside 2nd

as on double click only appears Insert 2nd component.

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 Xena_bcn

IT IS WORKING NOW.

i closed the page then opened it again in another window, oh oh oh...

 

How to clear cache in this cases?

4 replies

Xena_bcn
Xena_bcnAuthorAccepted solution
New Participant
May 9, 2016

IT IS WORKING NOW.

i closed the page then opened it again in another window, oh oh oh...

 

How to clear cache in this cases?

Xena_bcn
Xena_bcnAuthor
New Participant
May 9, 2016

Properties of 2nd component parsys as on the image

Xena_bcn
Xena_bcnAuthor
New Participant
May 9, 2016

Hemant Arora wrote...

Can you share you code here ?

 

 


hi Hemant.

here it is:

1st component:

<ul class="first" style="display: inline-block; width: 45%; border: dashed 1px;"> <cq:include path="parmetanavsub1" resourceType="foundation/components/parsys" /> </ul> <ul class="second" style="display: inline-block; width: 45%; border: dashed 1px;"> <cq:include path="parmetanavsub2" resourceType="foundation/components/parsys" /> </ul>

2nd component:

<li> <span class="map-icon ${metanavigation.selectedType}"> ${metanavigation.title} </span> <c:choose> <c:when test="${metanavigation.editMode && not metanavigation.previewMode}"> <div style="display:block; border: 1px dashed red; width: 100%;"> <cq:include path="parwebelement" resourceType="foundation/components/parsys" /> </div> <div style="display:block; border: 1px dashed blue;"> <cq:include path="parsocialelement" resourceType="foundation/components/parsys" /> </div> </c:when> <c:otherwise> <div style="display:block; width: 100%;"> <cq:include path="parwebelement" resourceType="foundation/components/parsys" /> </div> <div style="display:block; margin-left: 30px;"> <cq:include path="parsocialelement" resourceType="foundation/components/parsys" /> </div> </c:otherwise> </c:choose> </li>

 

jcr:content tree is shown on the attached image

Hemant_arora
New Participant
May 9, 2016

Can you share you code here ?