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

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

  • December 31, 2022
  • 1 reply
  • 759 views

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.
Best answer by joerghoh

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
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 2, 2023

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.