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
March 10, 2021
Solved

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

  • March 10, 2021
  • 1 reply
  • 1033 views

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

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.

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
March 11, 2021

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.

Adilmo
AdilmoAuthor
Level 4
March 12, 2021
Can initial and structure mode of template/template-type point to different page rendering components... ? What does that mean???