Hello, I want to create a servlet that will use the PageManager API to create a new page based off of a template. Basically whenever a new language is added to our site, I'd like a new page to be created automatically of the same template every time under that language.
Is this possible/advised?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi GRVYbb,
MSM reduces the time it takes to manage us websites and increases the re-use of common content:
Thanks
Hi @GRVYbb Instead of creating a servlet to generate a new page, why don't you leverage the multisite manager functionality of AEM and generate the live copies of the new language pages. This is all OOB and you don't have write any custom logic.
Refer to the below link:-
Hope this helps.
hi @GRVYbb ,
For this requirement you can write a launcher which will trigger a workflow for the specific event.
In the workflow, use process step to create page using pagemanager API and dont forget to save the session or commit the ResourceResolver to save your changes in JCR repository.
Hope this helps
Thanks,
Nikita Garg
Hi GRVYbb,
MSM reduces the time it takes to manage us websites and increases the re-use of common content:
Thanks
Thank you, I'll check this out. For sanity check reasons though - it is possible for a servlet to listen for a page creation then have it automatically create the page I want correct?
Views
Replies
Total Likes
Views
Likes
Replies