Template type (initial/jcr:content/sling:resourceType points to different page component than structure/jcr:content/resourceType) .. what are the implications ?? | Community
Skip to main content
Adilmo
Level 4
Mar 10, 2021 9:02 AM UTC
Solved

Template type (initial/jcr:content/sling:resourceType points to different page component than structure/jcr:content/resourceType) .. what are the implications ??

In we-retail xf template-type 

 

initial/jcr:content/sling:resourceType points to xfpage while 

structure/jcr:content/resourceType points to core component page ?? 

 

Which page component shall be used for xf template ? core OR xf page ?? 

 

In general what are the implications of such setup ?? why do we need this ?? 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Mar 11, 2021 6:27 PM UTC

Hi @adilmo,

Defining sling:resourceType in initial and structure refers to the page rendering component for the respective template. 

For XF, page rendering component is the one that inherits from OOB resource - cq/experience-fragments/components/xfpage

Defining the same as part of initial and structure of XF's template-type and template, brings in Variation, Building blocks when we create XF pages using those templates (specific to XF page editor)

In general,

  • For static template creation, we use to locate the page rendering component. 
  • Same way for editable templates, initial and structure (two modes of template editor) is the place to define the page rendering component.

Let know if you are looking for any other details.

3 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Mar 11, 2021 6:27 PM UTC

Hi @adilmo,

Defining sling:resourceType in initial and structure refers to the page rendering component for the respective template. 

For XF, page rendering component is the one that inherits from OOB resource - cq/experience-fragments/components/xfpage

Defining the same as part of initial and structure of XF's template-type and template, brings in Variation, Building blocks when we create XF pages using those templates (specific to XF page editor)

In general,

  • For static template creation, we use to locate the page rendering component. 
  • Same way for editable templates, initial and structure (two modes of template editor) is the place to define the page rendering component.

Let know if you are looking for any other details.

Translate
Adilmo
AdilmoAuthor
Level 4
Mar 12, 2021 3:03 AM UTC
Can initial and structure mode of template/template-type point to different page rendering components... ? What does that mean???
Translate