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

Avatar

Avatar
Validate 1
Level 2
RobertBailey1
Level 2

Likes

4 likes

Total Posts

19 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
RobertBailey1
Level 2

Likes

4 likes

Total Posts

19 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
RobertBailey1
Level 2

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)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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)