If you create an InitalizationModule and use the IContentEvents service https://world.episerver.com/documentation/class-library/?documentId=cms/7/306eae4b-2ba2-dd1e-c114-bccb0d3d2968 you can hook in an event against SavedContent.
Then in the code you can detect when a page of your type updates this value, load it's children and programtically update this value.
We have a case where we are creating Master Child Page Type References.
I see when I try to update modify page date by clicking on Update Modification Date in Master Page Properties, it updates Master Page Modification Date but fails to update referenced child pages.
I tried referring to other page properties it refers to correct value, but when referring to Update Modification Date CheckBox Value it always is referred as False.
I want when user selects Master Modification Date Update CheckBox to True only then Child should update its Modification Date.
How can I do this ?
Any help would be appreciated.
I am looking for something like this:
if (master.SetChangedOnPublish == true)
inheritpage.SetChangedOnPublish = true;
inheritpage.SetChangedOnPublish = false;