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

Is there a way to set jcr:createdBy property value while creating page programatically?

Deepti_v_Jain
Level 2
Level 2

Is there a way to set jcr:createdBy property value while creating page programatically?

2 Replies
Jtalbot
Employee
Employee

Hello,

This property is defined in the mix:created node and should automatically be created when you create a page either manually or programmatically. Be sure to use the PageManager to create the page in your code.

veena_kothakond
Level 1
Level 1

We're using the pageManager object to create the page. After the page is created the jcr:createdBy property is taken from the user ID available in the session object which is taken from the slingRequest object.

Now is there any possibility to update/override this property programatically?