Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Need to copy blueprint programmatically and modify properties value...

Avatar

Level 2

Hello, I am looking forward to copy and modify node / property values via sling post. I am not sure which path to take. What I need to copy blueprint programmatically and modify property values. I have gone through the sling manipulating content. Please do share if any good example.

1 Accepted Solution

Avatar

Correct answer by
Level 10
4 Replies

Avatar

Level 10

When you say copy blueprint and change the property value, can you let us know your use case ?

Are you trying to create live copy programmatically ?? Usually Blueprint will be created so that the business authors can use the same while creating new sites.

Avatar

Level 2
Not live copy. Second trying to attempt to create programmatically to create new site. I know page manager class with sling post is the answer however was looking if anyone has done to share learning example would help to reach faster. Thanks.

Avatar

Administrator

Hi 

Your can go through this article :- https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

In this article we are taking form values and sending them via AJAX post request and creating node corresponding to them.

I hope this would help you.

 

Else

 

you can create OSGi service and can modify node accordingly Link:- https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Level 10