Reuse components of Editable template on static pages | Community
Skip to main content
Level 6
February 20, 2024
Solved

Reuse components of Editable template on static pages

  • February 20, 2024
  • 3 replies
  • 857 views

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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Imran Khan

@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.

3 replies

Imran Khan
Community Advisor
Imran KhanCommunity AdvisorAccepted solution
Community Advisor
February 20, 2024

@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.

Level 2
February 20, 2024

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

Jagadeesh_Prakash
Community Advisor
Community Advisor
February 20, 2024

@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/refactoring-tools/aem-modernization-tools.html?lang=en