Static template page swapped with editable template page | Community
Skip to main content
Level 2
April 24, 2024
Solved

Static template page swapped with editable template page

  • April 24, 2024
  • 5 replies
  • 1218 views

Hi, 

 

We need to replace a existing (static template) page in AEM as a cloud service with new editable template page with same name and references. How can we achieve this?

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 aanchal-sikka

@aanchal-sikka Page is already created now we need to swap that editable template page with static page having same name as static template page and it should have same references that static page have?


@kanikaa32870678 

 

Once you copy over the content nodes to new pages, references would available.

However, movement has to be done while respecting the structure of editable templates.

Create the structural elements manually, like adding containers. Then copy the components from static page at desired locations.  

5 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
April 25, 2024
Level 2
April 25, 2024

@saravanan_dharmaraj As currently there are only 2-3 pages so is there any manual way to do that? As editable template pages are already created by authors. 

aanchal-sikka
Community Advisor
Community Advisor
April 25, 2024

@kanikaa32870678 

 

  • First create new pages with Editable template
  • Copy the content nodes from existing pages to new pages

 

The page structure of Editable and Static pages is different. You would need to analyze them carefully. Also, please validate the properties like sling:resourceType on jcr:content on new page. Avoid overwriting them.

 

Please note, even with modernizer tool, initial steps are to analyze the page structure differences and accordingly define rules 

Aanchal Sikka
Level 2
April 25, 2024

Hi @kanikaa32870678 

 

If you have only 2 3 pages to be converted, I would suggest you to do it manually. Following are the steps:

1. Create page using the editable template.

2. Copy the content nodes from original page to new page.

3. Open the page in edit mode. Do thorough testing to make sure the content is as expected. 

4. If you are missing a component, make sure the component is added in the policy of the editable template.

 

Hope this helps.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 26, 2024

@kanikaa32870678 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community

Esteban Bustamante
HrishikeshKagne
Community Advisor
Community Advisor
May 5, 2024

Hi @kanikaa32870678 ,

Follows the below steps:

  1. Create a New Editable Template Page:

    • Create a new editable template page with the same name as the existing static template page. You can do this in the AEM Sites console by navigating to the appropriate location in the content hierarchy and creating a new page using your desired template.
  2. Move or Copy Existing Content:

    • If there is existing content on the static template page that you want to preserve, you can either move or copy it to the new editable template page. Use the AEM Sites console to perform these actions.
  3. Update References:

    • If the static template page is referenced elsewhere in your AEM setup (e.g., in other pages, components, workflows), you'll need to update these references to point to the new editable template page. This may involve updating links, references in code, or configurations.
  4. Test and Validate:

    • After making the changes, thoroughly test the new editable template page to ensure that it functions as expected and that any references or dependencies are updated correctly.
  5. Publish Changes:

    • Once you're satisfied with the changes, publish the new editable template page and any related content to make it live on your AEM website.
  6. Consider Redirects (Optional):

    • If the URL of the original static template page needs to be maintained for SEO or user experience reasons, consider setting up a redirect from the old URL to the new URL. This can typically be done using AEM's dispatcher or by configuring redirects in your web server.
  7. Documentation and Communication:

    • Document the changes made, including any updates to references or configurations. Communicate the changes to relevant stakeholders to ensure awareness and understanding.

By following these steps, you should be able to replace an existing static template page with a new editable template page in AEM as a Cloud Service while maintaining the same name and references. Remember to test thoroughly and communicate effectively throughout the process to minimize any disruptions.

Hrishikesh Kagane
kautuk_sahni
Community Manager
Community Manager
May 16, 2024

@kanikaa32870678 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni