Try our conversational search powered by Generative AI!

SetChangedOnPublish property doesnt seem to work


the documentation for this particular PageData property says :

indicating whether the PageData.Changed should be updated on publish

I have set this to true in the SetDefaultValues method for our pages, but it does not update when the page is published.

do I need to hook into the publish event instead? or am I using it incorrectly?

I appreciate there is a tickbox on the settings tab, but seemed that this property was the way to avoid having to use that tickbox.

Sep 23, 2022 12:55

The Modified Date, I believe in code it is PageData.Changed is only updated if  "Update modified date" 

You can check this by default so on every publish it will also update this date

Sep 23, 2022 13:23

I believe their is a configuration setting aswell that can be set to Mark as modified by default, have a search for "uIDefaultValueForSetChangedOnPublish" 

Sep 23, 2022 13:25

If you want changed to be always updated when publish, use uIDefaultValueForSetChangedOnPublish as Minesh suggested - more information Release note - CMS-8263 ( 

if you want to have more flexibility, you can listen to IContentEvents.PublishingContent and set the value on content (you can have some criteria etc.) 

Sep 26, 2022 8:27


thanks for that, the release notes are talking about adding that settings to the <appsettings node in a web.config - and seem to be referencing the CMS 11 package.
I am having this problem in CMS 12, where does this need adding in the appsettings.json - its not mentioned on either of these documentaion pages


Edited, Sep 26, 2022 9:10

Apparently it was removed in CMS 12, I'm not sure why. but your second option (IContentEvents) should still work 

Sep 26, 2022 9:31
Isabella Gross Alström - Jan 11, 2023 14:29
Do you know if there is any plan to add back an easy option to make this happen?
Arvlun - Mar 14, 2023 14:03
+1, Have several different site using this feature. Any plans to add it back for cms12?
Lucas Olsson - Mar 27, 2023 13:23
I agree. This is a useful feature and I think it should be kept in cms 12.

Guess I should hide the tickbox as well then, or it will be confusing for the editors.

Sep 26, 2022 9:33
Quan Mai - Sep 26, 2022 9:40
I meant uIDefaultValueForSetChangedOnPublish flag was removed, if that was not clear. the feature should be the same, but I'm not 100% sure

hi Quan Mai, 

Thanks for the clarification, I just meant that if I am setting modified explicitly on publish - regardless of what the checkbox is set to, that would seem to make that checkbox confusing for editors. So I think I will use an editordescriptor to hide it to avoid that confusion.

Sep 26, 2022 9:46
Quan Mai - Mar 31, 2023 18:40
it will be released in 12.19.1

I, too, think that this property should be added in CmsUi settings.

Mar 15, 2023 14:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.