Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 10

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!