I'm writing some code to migrate items using the ItemManager.AddFromTemplate method. I'm wondering how to set what language the item created from that method is created in. Does it default to the language set in the sites node in config?

1 Answer 1


ItemManager.AddFromTemplate method uses your current language.

You can wrap your code into

Language lang = Language.Parse("your-lang-name");
using (new LanguageSwitcher(lang))

if you want to change the new item language.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.