Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I need to track when a Content node is changed. I need to be able to retrieve the old and new values of various properties.
The most important is name. When an item is renamed I need to perform an operation that needs to know both the old name and the new name of the item.
How can I get this information in the Saving/Saved events?
Thanks,
Josh
Got this working using ContentService.GetVersions(myPage.Id).First().
If there's a better way to do this please tell me.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Saving/Saved event - How can I get old properties
Hi all,
I need to track when a Content node is changed. I need to be able to retrieve the old and new values of various properties.
The most important is name. When an item is renamed I need to perform an operation that needs to know both the old name and the new name of the item.
How can I get this information in the Saving/Saved events?
Thanks,
Josh
Got this working using ContentService.GetVersions(myPage.Id).First().
If there's a better way to do this please tell me.
is working on a reply...