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

Avatar

Avatar

Anand_Bisht

Avatar

Anand_Bisht

Anand_Bisht

15-10-2015

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.

Accepted Solutions (1)

Accepted Solutions (1)

Answers (3)

Answers (3)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

15-10-2015

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

Avatar

Avatar

Anand_Bisht

Avatar

Anand_Bisht

Anand_Bisht

15-10-2015

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

Avatar

bsloki

MVP

Avatar

bsloki

MVP

bsloki
MVP

15-10-2015

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.