How to Read SetChangedOnPublish Property Value on Inherit Pages

Vote:
 

Hi,

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;
}
else
{
inheritpage.SetChangedOnPublish = false;
}

Regards,

Rajesh K

#200842
Jan 28, 2019 11:56
Vote:
 

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.

#200847
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.