AEM 6.2 Not all properties getting copied when copying a page via code
Hi All
On AEM 6.2 when I copy a page via the Page manager not all the properties on the are getting copied,
System user has full access to everything on my author instance, My user mapping is as below:
user mapping service
com.test.pw.test-pw-services:getResourceResolver=system-user
do I need more user mapping to copy across all properties?
//working but not all props are getting copied
Page sourcePage = resourceResolver.resolve(source).adaptTo(Page.class);
if(sourcePage != null){
pageManager.copy(sourcePage, newPath, null, true, true, true);
//I've even tried manually overwriting these settings but it still gets set as blank
Page newPage = resourceResolver.resolve(newPath).adaptTo(Page.class);
if(newPage.hasContent()){
Node newpageJCRNode = newPage.resourceResolver.adaptTo(Node.class);
newpageJCRNode.setProperty("pageTitle", title);
Thanks
Eric