IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
When editing an image, you must work with its master version. To modify an image, you must perform the following:
Get the master version.
Get the master version of the image. When you modify an image, you must not work on its live version.
Get a temp version.
Check out the master version to get a temp version of the image.
Modify the temp version.
Set the properties of the temp version to the new values. You can also upload new image data.
Update the master version.
Check in the temp version to transfer the changes to the master version.
Update the live version.
Publish the master version to transfer the changes to the live version.
The example below shows you how to modify an image by the ID of its master version. For more information about working with the ID of the live version, see For developers: Edit content in For developers: Content lifecycle.
The following code modifies an image by the ID of its master version.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important