Try our conversational search powered by Generative AI!

Ready to Publish programmatically


When editing a page or shared block, editors has the option to set it as "Ready to Publish" when it is saved.

How can I give content this status programmatically?

Jun 26, 2015 11:13

It should be SaveAction.CheckIn,



Jun 26, 2015 12:49
var contentRepo = ServiceLocator.Current.GetInstance<IContentRepository>();

contentRepo.Save(model,SaveAction.CheckIn,AccessLevel.NoAccess );

This will save publish every time. Episerver 8 

Feb 10, 2016 2:30

Maybe forgot to filter a rendered list on published status?

Check filter for visitor below Episerver.Filters namespace in that case.

Feb 10, 2016 9:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.