Create component which should be preloaded with template | Adobe Higher Education
Skip to main content
Level 6
September 13, 2021
Besvarat

Create component which should be preloaded with template

  • September 13, 2021
  • 3 svar
  • 3181 visningar
Given I am a content author, When I configure the page of particular template, Then I want the components should be preloaded on page
 
Det här ämnet har stängts för svar.
Bästa svar av AlbinIs1

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/spa-editor/react/custom-component.html?lang=en

 

Regards

Albin I

www.albinsblog.com

3 svar

Community Advisor
September 13, 2021

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)

 

 

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)

 

 

 

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-templates-editable.html?lang=en

 

Regards

Albin I

www.albinsblog,com

Ronnie09Skribent
Level 6
September 14, 2021

How can I update _cqdialog.xml for permanent change

Community Advisor
September 14, 2021

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/spa-editor/react/custom-component.html?lang=en

 

Regards

Albin I

www.albinsblog.com

Fanindra_Surat
Community Advisor
Community Advisor
September 13, 2021

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?lang=en#editing-a-template-initial-content-author

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?lang=en#editingatemplatestructure

 

Thanks,

Fani

 

 

Anny0505
Community Advisor
Community Advisor
September 13, 2021

@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

 

 

 

Thanks,

Aruna