I can't seem to figure out how to get the current language in a custom editor when using split view editing in Umbraco 8.
In my custom property i load some images from child elements. Not all child elements are published in all countries, so i need to call my api with the current language... if i look in $routeParams.cculture it will return the same for both languages..
Language in custom property
Hi,
I can't seem to figure out how to get the current language in a custom editor when using split view editing in Umbraco 8.
In my custom property i load some images from child elements. Not all child elements are published in all countries, so i need to call my api with the current language... if i look in $routeParams.cculture it will return the same for both languages..
An image of my scenario:
/ulrich
Found it!!
$scope.$parent.$parent.model.culture .. :D
By the way - the editor I'm building is for this layout.. ;)
is working on a reply...