Determine previous version of the content change on a page
Is it safe to to use cmsPreviewXml table to determine previous version of the content change on a page? E.g. the following SQL query would show all the versions on for any page like pagename.
I could not find any documentation something like "umbraco content page versioning" in the forum and Google.
SELECT [nodeId]
,[versionId]
,[timestamp]
,[xml]
FROM [KMDevelop].[dbo].[cmsPreviewXml]
WHERE [xml] LIKE '%pagename%'
Determine previous version of the content change on a page
Is it safe to to use cmsPreviewXml table to determine previous version of the content change on a page? E.g. the following SQL query would show all the versions on for any page like pagename.
I could not find any documentation something like "umbraco content page versioning" in the forum and Google.
Hi Dominic
I would not recommend you to use SQL for working with versions.
Try to use ContentService, you can get all versions of page with this code:
Also, you can get specific version and remove specific version.
Thanks,
Alex
What Alex said. Don't use SQL if you don't really need to.
In case you have no alternative,
cmsPreviewXml
is for the previews only. I think you needcmsDocument
andcmsContentVersion
.is working on a reply...