create page programmatically by servlet
Hi ,
Please suggest how to create pages by hitting servlet in AEM6.1
Regards,
Hi ,
Please suggest how to create pages by hitting servlet in AEM6.1
Regards,
As mentioned by Peter, please use PageManager APIs.
Example:-
Link:- https://helpx.adobe.com/experience-manager/using/ecommerce62.html
// Creating custom Adobe Experience Manager 6.2 ecommerce providers
Option 2: Using Curl Commands
Link:- https://hashimkhan.in/2015/05/27/aem-with-curl/
//
Create a Page (Although its not recommended to do with cURL, as we have Page Manager API for this.)
curl -u admin:admin -F "jcr:primaryType=cq:Page" -F "jcr:content/jcr:primaryType=cq:PageContent" -F "jcr:content/jcr:title=Curl Page" -F "jcr:content/sling:resourceType=geometrixx/components/contentpage" http://localhost:4502/content/geometrixx/en/curlPage
I hope this would help you.
~kautuk
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.