Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Convert Static Templates to Editable Templates

Avatar

Level 2

Dear All,

I am following below AEM document for converting Static Templates to Editable Templates.

Introducing the AEM Modernization Suite

Before using AEM Moderisation Tool , I want to create Editable Templates first and facing issue for creating Editable templates.

I have static template like below.

1853048_pastedImage_9.png

and my static template sling:resourcetype is  sunita/components/pages/thankYou.

Now I want to create editable template for this thankyou static template...

How can I use this below content.html in my editable template ????

I am struggling from last 2 days.

I am using AEM 6.5 SP1. Can you please give me some idea how to proceed on this ?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi Ka,

My thank you page component is using core page ( core/wcm/components/page/v1/page) and now it is coming fine , after I include my thankyou.html inside my page.html/

Thanks

Sunita

View solution in original post

8 Replies

Avatar

Community Advisor

Try creating a page component using this content.html where you can keep everything except the last two components.

Those two components you can directly include on editable template.

Hope this helps.

Avatar

Level 2

Hi Ka,

Thanks for replying.

Try creating a page component using this content.html where you can keep everything except the last two components.

So do I need to create page component under components/pages "or" under structure , as shown below.

1855082_pastedImage_0.png

Also my editable template type uses the structure sling:resourcetype as sunita/components/structure/page , as shown below.

1855083_pastedImage_2.png

let me try these all options and lets see.

Avatar

Level 2

I did all the steps , mentioned in above. I am getting no layout while creating editable templates from my editable template type.

1855178_pastedImage_0.png

Please let me know if I need to do anything else.

Avatar

Community Advisor

Could you please check whether your page component is extending core page conponent.

Also you could create similar structure as we retail page component.

Avatar

Correct answer by
Level 2

Hi Ka,

My thank you page component is using core page ( core/wcm/components/page/v1/page) and now it is coming fine , after I include my thankyou.html inside my page.html/

Thanks

Sunita

Avatar

Community Advisor

Could u pls mark it as correct will be helpful for others..

Avatar

Level 2

Hi Ka,

It was not working because , the static page thankyou.html is not included in my editable structure page.html (/components/structure/page/page.html). After I include in my page.html (<sly data-sly-include="thankyou.html"></sly>) it is working fine.

Thanks

Sunita