London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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