Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Create component which should be preloaded with template

Avatar

Level 7
Given I am a content author, When I configure the page of particular template, Then I want the components should be preloaded on page
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You should be able to update the component dialogs through code deployment, refer to the following URL for more details - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/s...

 

Regards

Albin I

www.albinsblog.com

View solution in original post

6 Replies

Avatar

Community Advisor

You should be able to use the initial content (initial content mode) from an editable template to achieve your use case

(Add the required components, the components can be added only to the unlocked container - content authors will be able to manage these components - remove or modify the configurations)

 

Albin_Issac_1-1631563771015.png

 

Even the initial structure e.g header and footer can be defined in the template through structure mode

(Lock the container and add the required components - content authors will not be able to manage these components)

 

Albin_Issac_0-1631563636726.png

 

 

The difference is the structure changes will impact the pages created with the template but initial content changes won't impact the existing pages

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/templates/page-tem...

 

Regards

Albin I

www.albinsblog,com

Avatar

Correct answer by
Community Advisor

You should be able to update the component dialogs through code deployment, refer to the following URL for more details - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/s...

 

Regards

Albin I

www.albinsblog.com

Avatar

Community Advisor

@Ronnie09, Below are the options:

 

1. You can update the dialog properties through CRX/de.

2. You can update dialog XML from the code repository.

 

Thanks,

Aruna

Avatar

Community Advisor

Hi @Ronnie09  - 

 

This is easier, if you are using editable templates.

 

The "Initial content" mode in the Editable template lets the authors to drag and drop components, and these will appear pre loaded on the page created out of it.

Ref: https://experienceleague.adobe.com/docs/experience-manager-65/authoring/siteandpage/templates.html?l...

https://www.argildx.com/technology/how-to-create-and-enable-dynamic-templates-in-aem/

 

If you are adding any new components to the "Initial Content" of template after the pages are created, then they will be not be reflected on the pages. If you need this kind of dynamic relation between the template and pages, then use the "Structure" mode.

Ref: https://experienceleague.adobe.com/docs/experience-manager-65/authoring/siteandpage/templates.html?l...

 

Thanks,

Fani

 

 

Avatar

Community Advisor

@Ronnie09 ,

With Editable Templates, you can achieve your requirements very easily.

All you have to do is add the all the components to a Editable Template "Inital Content" section,So that all components are going to be  preloaded when you create a new page using the Template.

 

https://blog.3sharecorp.com/creating-editable-templates-adobe-experience-manager

 

annyreddy_0-1631562382765.png

 

 

Thanks,

Aruna