what's the difference between .../page1 and ...page1/jcr:content or page/_jcr_content | Community
Skip to main content
Level 4
Dec 31, 2022 9:07 PM UTC
Solved

what's the difference between .../page1 and ...page1/jcr:content or page/_jcr_content

What's the difference between page and page/jcr:conent? When I access .../pagex.model.json and .../pagex/jcr:conent.model.json, I only see the jcr:conent.model.json has the allowedComponents section, while the page model.json doesn't. What's the scenario need to access the jcr:content node instead of the page node itself?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Jan 2, 2023 4:43 PM UTC

That heavily depends on what you want to achieve. Sling Models are normally tied to the resourcetype, and the resource type is only specified in the jcr:content node. Unless you want to tie it to the "cq/page" resourcetype, in which you have to  invoke it on the page node directly. But in general there is no rule.

 

 

1 reply

joerghoh
joerghohAccepted solution
Employee
Jan 2, 2023 4:43 PM UTC

That heavily depends on what you want to achieve. Sling Models are normally tied to the resourcetype, and the resource type is only specified in the jcr:content node. Unless you want to tie it to the "cq/page" resourcetype, in which you have to  invoke it on the page node directly. But in general there is no rule.

 

 

Translate