You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using AEM on-prem and working on migrating our sites to editable templates using the AEM Modernize Tool. While we have successfully customized the tool to convert pages and components via the GUI, we need a way to run it from the command line to process a large number of pages in bulk.
Our goal is to automate the conversion for 500+ sites, each containing hundreds of pages. One approach we attempted was using a curl request to the create.json endpoint: curl -u admin:password -X POST "http://aem-host:4502/mnt/overlay/aem-modernize/content/full/job/create.json" \ -H "Content-Type: application/json" \ -d '{ \"name\":\"$site_job_name\",\ \"type\":\"FULL\",\ \"paths\":[\"HERE_WE_NEED_TO_PROVIDE_ALL_SITES_PATH_WITH_CHILD_PAGES"\],\ \"templateRules\":[\ \"aem.conversion.page.PageRewriteRule~OneColumn\",\ \"aem.conversion.page.PageRewriteRule~TwoColumn\",\ ],\ \"policyRules\":[],\ \"componentRules\":[\ \"aem.conversion.component.ColumnControlRewriteRule\",\ \"conversion.component.ComponentRewriteRule\"\ ],\ \"confPath\":\"/conf/yoursite",\ \"overwrite\":false,\ \"sourceRoot\":\"/your/source/path/here\",\ \"targetRoot\":\"/your/target/path/here\",\ \"pageHandling\":\"NONE\"\ }'
This partially worked, but it does not automatically process child pages of each site. We need an efficient way to:
Recursively fetch all child pages of a given site.
Pass them in bulk to the modernization job.
Execute this from the command line or a script without using the GUI.
Questions:
Is there an existing way to trigger batch processing via API instead of the GUI?
How can we retrieve all child pages programmatically and pass them to the modernization tool?
Are there any recommended best practices for handling large-scale conversions via automation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We are using AEM on-prem and working on migrating our sites to editable templates using the AEM Modernize Tool. While we have successfully customized the tool to convert pages and components via the GUI, we need a way to run it from the command line to process a large number of pages in bulk.
Our goal is to automate the conversion for 500+ sites, each containing hundreds of pages. One approach we attempted was using a curl request to the create.json endpoint:
curl -u admin:password -X POST "http://aem-host:4502/mnt/overlay/aem-modernize/content/full/job/create.json" \ -H "Content-Type: application/json" \ -d '{ \"name\":\"$site_job_name\",\ \"type\":\"FULL\",\ \"paths\":[\"HERE_WE_NEED_TO_PROVIDE_ALL_SITES_PATH_WITH_CHILD_PAGES"\],\ \"templateRules\":[\ \"aem.conversion.page.PageRewriteRule~OneColumn\",\ \"aem.conversion.page.PageRewriteRule~TwoColumn\",\ ],\ \"policyRules\":[],\ \"componentRules\":[\ \"aem.conversion.component.ColumnControlRewriteRule\",\ \"conversion.component.ComponentRewriteRule\"\ ],\ \"confPath\":\"/conf/yoursite",\ \"overwrite\":false,\ \"sourceRoot\":\"/your/source/path/here\",\ \"targetRoot\":\"/your/target/path/here\",\ \"pageHandling\":\"NONE\"\ }'This partially worked, but it does not automatically process child pages of each site. We need an efficient way to:
Questions:
Any guidance would be greatly appreciated!
Thank you!
All reactions