Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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