Having an updatedOn field
#7017
Unanswered
Ariber-Yadier
asked this question in
Q&A
Replies: 1 comment
-
|
It looks like this code is simply setting CMS.registerEventListener({
name: 'preSave',
handler: ({ entry }) => {
return entry.get('data').set('updatedOn', new Date().toISOString());
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone with a better understanding of Decap CMS tell me how would I add an
updatedOnfield that automatically updates?I tried using the following code, but sometimes it works and sometimes it's just empty:
Beta Was this translation helpful? Give feedback.
All reactions