Try our conversational search powered by Generative AI!

Setting "Update modified date" to checked by default for all Saves

Vote:
 

Hi, I'm trying to set the "Update modifed date" to be checked by default and to always update the Modified date on every save, unless the checkbox is unchecked by the user.

I've found the uIDefaultValueForSetChangedOnPublish attribute and set this to true in episerver.config, but it doesn't work as expected. The "Update modified date" checkbox in EPiServer is still unchecked by default.

Is there something else I need to do to use the uIDefaultValueForSetChangedOnPublish attribute, or another way to achieve this functionality? 

EPiServer.CMS 11.15.1

EPiServer.CMS.Core 11.16.0

BR,

Xiaoai

 

#247949
Feb 01, 2021 11:00
Vote:
 


Its been a while since I also was looking into this. Set the proprerty in episerver as you say seems to does the trick. However can I see that I have added code that is called on PublishingContent event that set this or Mediafiles (currentContent as MediaData).SetChangedOnPublish = true;

#247960
Feb 01, 2021 13:42
Vote:
 

To be clear, "Update modified date" doesn't update on every save, only when you publish the content.
Add uIDefaultValueForSetChangedOnPublish="true" to <episerver><applicationSettings>  should be enough.

There was a bug about the "Update modified date", but it was fixed in EPiServer CMS UI 11.1.0 (https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=CMS-8263)

#247965
Edited, Feb 01, 2021 15:56
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.