Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco 6.1.0 beta 2
How I can get Language of Content by Id?
I try like that
ApplicationContext.Services.ContentService.GetById(1070).Language
But is allways return null
The property language still have the remark "Left internal until multilingual support is implemented.". I'm not sure if it is already implemented. Maybe it only has a value when hostnames are set?
Hi z4kk,
I'm not sure about 6.1.0 beta 2 But now you can get language with this code:
@using umbraco.cms.businesslogic.web; @{ var firstDomainLanguage = Domain.GetDomainsById(Model.Content.AncestorOrSelf(1).Id)[0].Language; }
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Language of Content by Id
Umbraco 6.1.0 beta 2
How I can get Language of Content by Id?
I try like that
But is allways return null
The property language still have the remark "Left internal until multilingual support is implemented.". I'm not sure if it is already implemented. Maybe it only has a value when hostnames are set?
Hi z4kk,
I'm not sure about 6.1.0 beta 2 But now you can get language with this code:
Thanks
is working on a reply...