Options for adding a second Layout Container to an existing Editable Template

RobertBailey1

07-02-2020

Hi All,

I have an existing Editable Template in an AEM project which contains ONE Layout Container , as shown below in [Figure 1].

Am I right in thinking that either [Figure 2] or [Figure 3] are both valid options for adding a second Layout Container?

Thank you for your time.

 


[Figure 1] Structure of template with ONE Layout Container named "root" (with sling:resourceType shown in brackets)

/conf/my-template-folder/settings/wcm/templates/page-template/initial/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/policies/jcr:content/root (wcm/core/components/policies/mapping)
/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/jcr:content
/conf/my-template-folder/settings/wcm/templates/page-template/thumbnail.png


[Figure 2] Possible structure of template with TWO Layout Containers named "root" and "second-container" (with sling:resourceType shown in brackets)

/conf/my-template-folder/settings/wcm/templates/page-template/initial/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/initial/jcr:content/second-container (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/policies/jcr:content/root (wcm/core/components/policies/mapping)
/conf/my-template-folder/settings/wcm/templates/page-template/policies/jcr:content/second-container (wcm/core/components/policies/mapping)
/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/second-container (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/jcr:content
/conf/my-template-folder/settings/wcm/templates/page-template/thumbnail.png


[Figure 3] Possible structure of template with TWO Layout Containers named "root" and "second-container" (with sling:resourceType shown in brackets)

/conf/my-template-folder/settings/wcm/templates/page-template/initial/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/initial/jcr:content/root/second-container (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/policies/jcr:content/root (wcm/core/components/policies/mapping)
/conf/my-template-folder/settings/wcm/templates/page-template/policies/jcr:content/root/second-container (wcm/core/components/policies/mapping)
/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root/second-container (wcm/foundation/components/responsivegrid)
/conf/my-template-folder/settings/wcm/templates/page-template/jcr:content
/conf/my-template-folder/settings/wcm/templates/page-template/thumbnail.png

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

18-02-2020

Hi,

I can't see the images but if you are using two layouts containers
you should add two containers like

/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root/container1

/conf/my-template-folder/settings/wcm/templates/page-template/structure/jcr:content/root/container2

 

Answers (0)