Pages are not displaying properly on preview | AEM

When previewing a page on the Adobe Experience Manager as a Cloud Service’s (AEMaaCS) preview environment, the formatting, CSS, and experience fragments may not load even if they are included in the page’s template. This article outlines two workarounds to guarantee that templates are accessible in the preview environment for testing and validation prior to their official release.

Description description

Environment

Adobe Experience Manager as Cloud Service

Issue/Symptoms

When publishing a page to preview, the template is not published to preview. This can cause unexpected issues when trying to view the page on the preview environment.

Resolution resolution

There are several workarounds to ensure that templates are available in the preview environment for testing and validation before going live.

The two workarounds are:

  • Custom Publish Tree Workflow

  • Access the AEM Workflow Models console.

  • Copy the default Publish Tree  workflow to create a new custom workflow model.

  • Modify the copied workflow to target the preview replication agent instead of the live publish agent.

  • Save the new workflow model and use it to manually publish templates to the preview environment.

  • Include Templates in the Deployment Package

  • Alternatively, you can include your templates within a content package that is part of your project’s codebase and then use your pipeline to deploy this package to all environments, including the preview environment.

By following either of these steps, you can ensure that templates are available in the preview environment for content authors to work with, facilitating a smoother content staging and review process.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f