A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi,
You can find more pieces of information on the below links-
https://world.episerver.com/documentation/developer-guides/CMS/Content/content-versions/
Hi JJ,
Set Saved version as Common Draft as following:
...
writablePage.Name = "a new name";
var saveAction = SaveAction.CheckIn | SaveAction.ForceNewVersion;
var newReference = _contentRepository.Save(writablePage, saveAction, EPiServer.Security.AccessLevel.NoAccess);
var repository = ServiceLocator.Current.GetInstance<IContentVersionRepository>();
repository.SetCommonDraft(newReference);
Hi,
We have a custom class that extends PageData.
We are currently saving the data using IContentRepository.
How can we set the saved version as Common Draft?
Also, is Common Draft the same as Primary Draft? Documentation is not clear on that.
Thanks,
J