Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

contentRepository.Save is publishing my page and gives me three versions? (CMS 11)

Vote:
0

Hi!

I am using this code to create and save a page. The page exists in one language so I want to create it in another language:

var editable = (IContent) this._contentRepository.CreateLanguageBranch(content.ContentLink, new LanguageSelector(language));
_contentRepository.Save(editable, SaveAction.SkipValidation, AccessLevel.NoAccess);

First of all, why is my page published and not saved and my are there one published page and two previously published versions?

Thanks!

/Kristoffer

#197641
Oct 09, 2018 10:28
Vote:
0

Do you have any listeners listen to SavingContent/SavedContent? It seems there might be code doing stuffs down the pipeline 

#197653
Oct 09, 2018 15:07
Vote:
0

It is a standard Alloy installation so I don't think so? 

#197655
Oct 09, 2018 15:27
* 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.