NilsN
March 4, 2022, 1:51pm
2
For the changes to be visible in BO you should update the DraftPage
rather than the Page
entity. You can update the draft page and then publish it to push the changes to the live version of the page.
You should try to use the DraftPage entity instead of the Page and then when it is ready you will do a publish on the draft. Then also back office will be updated with the same content as you have publish.
In order for back office to have the same content from the changes you made in code, a good idea is to make the changes to a DraftPage of the new page you created and then publish that one.
var draftPage = _draftPageService.Get(page.SystemId).MakeWritableClone();
// make changes
_draftPageService.Update(draftPage);
_draftPageService.Publish(draftPage);
1 Like