Try our conversational search powered by Generative AI!

How to Read SetChangedOnPublish Property Value on Inherit Pages



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;


Rajesh K

Jan 28, 2019 11:56

If you create an InitalizationModule and use the IContentEvents service 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.

Jan 28, 2019 15:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.