Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Create Item in multiple languages

Modified: 2009/11/26 11:08 by jim - Categorized as: ASP.NET, Csharp, Sitecore
When creating a Sitecore item from .NET code behind and subsequently filling the fields with values, you may notice that no item in alternative languages are created in the Sitecore Content Tree.

In your code behind file you need to use
db.GetItem(newItem.ID, alternateLanguage)
for each language other then Language.Current. For each language you will have to edit the initial values once.

After the creation you will have to edit values for each language item. You will have to publish the current item for each language in your language collection.

 © Evident Interactive BV