so I have around 2000 page with some components and i want to replace these components with a newly created components, in that case should i handle this manually or what do you recommend?
Views
Replies
Total Likes
hi @madonnaIb,
For replacing components across 2000 pages in AEM, automation is strongly recommended over manual updates. Manual replacement would be extremely time-consuming, error-prone, and inefficient at this scale.
Here is a list of recommended automated Approaches:
The AEM Groovy Console is the most popular solution for bulk component replacement. This approach allows you to write a script that finds and replaces component resource types across all pages programmatically. A basic Groovy script structure would query for nodes with the old component's sling:resourceType and update them to the new component path.
ACS AEM Tools - Resource Type/Template Update provides built-in utilities for bulk updates, including tools specifically designed for updating sling:resourceType or cq:Template properties across multiple pages. This is a more user-friendly option if you prefer not to write custom scripts.
Sling Pipes offer a declarative approach to content transformation and are well-suited for complex migration scenarios where you need to find, filter, and modify content in a structured way.
Content transformation is better if you need multiple versions of same component in different pages/apps in AEM.
If not, another option (probably quicker to realize) to consider would be to create new "versions" of existing components and enable the "latest version" for those specific components.
Say you have a banner under /apps/project/components/header
the new banner could be under /apps/project/components/header/v1
And under header (base version, parent of v1) you can choose to deprecate existing version and enable v1.
Views
Replies
Total Likes
Views
Likes
Replies