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

Vote:
 

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:
 

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:
 

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.