Below is a code sample of how to loop through language versions of a page.
foreach (var pageLanguage in pageTypeData.ExistingLanguages)
{
var repository = ServiceLocator.Current.GetInstance<IContentLoader>();
var test1 = repository.Get<PageData>(pageTypeData.ContentGuid, pageLanguage);
}
Please sign in to leave a comment.