Expand my Community achievements bar.

SOLVED

Reuse components of Editable template on static pages

Avatar

Level 8

Hi,

 
We have a page(/content/demo/en/men) created using editable template(/conf/demo/settings/wcm/templates/homepage) in aem
 
I have another page(/content/demo/en/men/about) created using static template(/apps/demo/templates/contentpage-static)
Can we use the components of the editable template from the static page(/content/demo/en/men/about)?
 
Thanks,
Van
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Vani1012 Component doesn't depend on templates. Yes, we can use same component in both static and editable template. The only prerequisite is to have that component specific clientlib loading as part of both the templates.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@Vani1012 Component doesn't depend on templates. Yes, we can use same component in both static and editable template. The only prerequisite is to have that component specific clientlib loading as part of both the templates.

Avatar

Level 2

Hi @Vani1012  - There should not be any issue in doing this if static template component can be called separately.

Avatar

Community Advisor

@Vani1012  I agree with @Imran__Khan  & @AEM_U1 . If you are still facing some issue on using the components on static template can you post the error what you are facing. 

 

If not you can try using modernise tool on the components and create a new version of component which can be supported on editable templates. 

 

https://opensource.adobe.com/aem-modernize-tools/

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/migration-journey/r...