How to inherit editable templates into child templates? | Community
Skip to main content
vigiaemnewbie
Level 2
Oct 14, 2019 12:50 PM UTC
Solved

How to inherit editable templates into child templates?

Let's say I have created a configuration and editable templates for my parent site A and now I have to create editable templates for my child sites B and C. I need to inherit the various editable templates created for my parent site A into the child sites B and C and I should be able to edit these templates and provide a layout and content unique to the child sites. The following structure should roughly illustrate the idea:

  • Site A
    • Editable Template 1A
    • Editable Template 2A
    • Site B
      • Editable Template 1B which inherits 1A
      • Editable Template 2B which inherits 2A
    • Site C
      • Editable Template 1C which inherits 1A
      • Editable Template 2C which inherits 2A
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ankur_Khare
Ankur_KhareAccepted solution
New Participant
Oct 14, 2019 2:13 PM UTC

In Editable Template we have feature called Template type .

So in this case we can have a template type as A which could be used to create 1A, 1B, 1C templates .

In this way you need to configure common changes at template type created in step 1 and rest will inherit from there.

For more deatils refer below link-

https://stackoverflow.com/questions/39290361/template-editor-aem-not-working-as-expected/43192016

3 replies

Ankur_Khare
New Participant
Oct 23, 2019 11:30 AM UTC

is it resolved?if yes pls mark it as correct..

Translate
Level 3
Oct 14, 2019 6:43 PM UTC

AEM does not support template inheritance like other CMS systems do.

Translate
Ankur_Khare
Ankur_KhareAccepted solution
New Participant
Oct 14, 2019 2:13 PM UTC

In Editable Template we have feature called Template type .

So in this case we can have a template type as A which could be used to create 1A, 1B, 1C templates .

In this way you need to configure common changes at template type created in step 1 and rest will inherit from there.

For more deatils refer below link-

https://stackoverflow.com/questions/39290361/template-editor-aem-not-working-as-expected/43192016

Translate