Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

adobecq-venkat
Level 3
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
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

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
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

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

shekhardhiman
Employee
Employee

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!