J
jread
Guest
You can get at the translated fields by looking at var translations = post.PublishedTranslations; this will give a list of the published langues. You then using the language code to access the fields translations. item.Title["es'] or whatever the culture is. If you want to use the manager to pull content in a specific language you need to change the culture of the context first to the language you want get the list then return it back to the original culture. var cultureInfo = new CultureInfo(culture); var currentCulture = Thread.CurrentThread.CurrentUICulture; Thread.CurrentThread.CurrentUICulture = cultureInfo; var posts = BlogsMaanger.GetManager().GetBlogPosts();//This should now retrieve the content items in the specificed culture Thread.CurrentThread.CurrentUICulture; Thread.CurrentThread.CurrentUICulture = currentCulture;//set it back
Continue reading...
Continue reading...