Need help in creating c:page and jcr:content using API. creation of cq:page doesn't create jcr;content automatically | Community
Skip to main content
adobecq-venkat
Level 2
October 16, 2015
Solved

Need help in creating c:page and jcr:content using API. creation of cq:page doesn't create jcr;content automatically

  • October 16, 2015
  • 2 replies
  • 909 views

I am currently using API to create folder and cq:page as shown below:

Node kapostconnectorPage = JcrUtil.createPath(custNode.getPath() + "/" + "venkakapostconnector", "cq:Page", 
                custNode.getSession());

 

How do I create or set jcr:content?

 

When I create cq:page it doesnt create jcr:content automatically.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

create page using PageManager.create(String parentPath, String pageName, String template, String title, boolean autoSave) 

http://docs.adobe.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

create page using PageManager.create(String parentPath, String pageName, String template, String title, boolean autoSave) 

http://docs.adobe.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html

WhoaShekhar
Level 10
October 16, 2015

Hi there,

Thanks for reaching out to Adobe Community.

Please see if the below community article helps:

http://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

Thanks!