Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Can not insert a component inside another

Avatar

Level 6

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.

1 Accepted Solution

Avatar

Correct answer by
Level 6

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?

View solution in original post

0 Replies

Avatar

Level 6

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

Avatar

Level 6

Properties of 2nd component parsys as on the image

Avatar

Correct answer by
Level 6

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?