We have a macro which on save adds a new parameter value on the fly in the page's storage format. While that is working, the page itself is not creating a new version or draft of it eventhough we clearly see the storage format has changed. We tried using
pageManager.saveContentEntity(page, new DefaultSaveContext.Builder().build());
where 'page' is the concerned page object - it IS updating the macro parameter and page storage format correctly but not the page version.
Please advise if any other alternatives.
Found this solution feasible for my needs, hence closing this ticket out with the solution, for everyone's reference:
pageManager.<Page>saveNewVersion(page, page1 -> page1.setBodyContent(content), new DefaultSaveContext.Builder().build());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.