JCR content structure - cq:Page with cq:Page child | Community
Skip to main content
Level 2
September 27, 2016
Solved

JCR content structure - cq:Page with cq:Page child

  • September 27, 2016
  • 3 replies
  • 1911 views

Good day,

I've come across a rather "odd" structure in the content tree of my current project. One of the pages under /content has another page in it's jcr:content node. This child page has it's own jcr:content node. So it looks like this:

/content/myPage (jcr:primaryType: cq:Page)

/content/myPage/parsys (jcr:primaryType: nt:unstructured, sling:resourceType: foundation/component/parsys)

/content/myPage/parsys/jcr:content (jcr:primaryType: nt:unstructured)

/content/myPage/parsys/jcr:content/mySubPage (jcr:primaryType: cq:Page)

/content/myPage/parsys/jcr:content/mySubPage/jcr:content (jcr:primaryType: nt:unstructured)

/content/myPage/parsys/jcr:content/mySubPage/jcr:content/parsys (jcr:primaryType: nt:unstructured, sling:resourceType: foundation/component/parsys)

The whole page is rendered properly (both in the author and publisher environments), with the content of the mySubPage node showing at the right place on the myPage.

I've never seen this kind of structure, so I have some concerns. Is there any objection to having this kind of content structure?

Thanks!

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 joerghoh

Hi,

I would fix this content structure. Even if it doesn't break anything, you might run into problems at a later point. When you found out this now, you should put it on your list.

Jörg

3 replies

smacdonald2008
Level 10
September 27, 2016

How did you create the pages? 

Level 2
September 28, 2016

The myPage page was created using the author environment.

The mySubPage content on myPage is the result of adding a custom component from the sidekick to the myPage parsys, also using the author environment.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
September 28, 2016

Hi,

I would fix this content structure. Even if it doesn't break anything, you might run into problems at a later point. When you found out this now, you should put it on your list.

Jörg