Is it possible to track changes made to a content editor web part and alert users to these changes? Basically, the same thing that I would do with a list, but with a CEWP instead?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Yes, We can track the changes made to the Content Editor Web part. To achieve this, you have to create a file in txt format,(that should contains the contents in CEWP) with in a Document Library.
After creation of the file, add the file url in the Content Link, you can see that option in the Web part Properties of the CEWP.
By using this, we can track the modifications on CEWP and also send notifications, if any changes happen to CEWP.
it is possible to develop a Delegate Control with User Control (ascx) and jQuery to look for Content Editor web part changes over site pages, and send alerts if content gets changed. But, I believe it involves a lot of work. I wonder if there is a specific purpose behind developing such functionality?
Falak is right, it's not supported out of the box. What are your business requirements? If you are worried about tracking changes to pages then you can do the following:
I like the versioning idea but if you dont one other thing, you could create a custom part.
Inherit from the CEWP and add the custom code to do what you want. Reflector is your friend here!
Perhaps you would also want a feature receiver to remove the original CEWP from the gallery so it doesnt show up when adding to limit confusion.
If I understand correctly, your users modify multiple documents, and then change the CEWP to indicate that changes were made. You want to send ONE notification when they are done making changes, not as each document is changed.
If I might suggest a different direction, why not create an Announcements list and put it on the home page of each site? When a user is done making all their changes to the library, they add a new announcement on the home page, and you can add alerts on that Announcement list, so only one email is sent.
This has the added benefit of keeping track of who made changes and when, which your current model does not have. You can name the Announcements list whatever you want, like "Change Log" or something.
If you want to get really clever, change the permissions for the Announcement list to only allow Add permissions from the contributors, so they can't change theirs or someone else's entry, but have to make a new one.