DocumentSynchronizationHelper.LogDocumentChange(TreeNode node, TaskTypeEnum taskType, TreeProvider tree)
after the newPage.Update()
or newPage.Publish()
will include it in staging.
For taskType, use TaskTypeEnum.CreateDocument, TaskTypeEnum.UpdateDocument, or MoveDocument or PublishDocument or other suitable task type according to the performed task.
newPage.CheckOut()
and newPage.CheckIn()
may also have to be used