Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ulrich Wagner Gade Ebsen 127 posts 277 karma points
    Jan 23, 2020 @ 10:17
    Ulrich Wagner Gade Ebsen
    0

    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:enter image description here

    /ulrich

  • Ulrich Wagner Gade Ebsen 127 posts 277 karma points
    Jan 23, 2020 @ 21:43
    Ulrich Wagner Gade Ebsen
    0

    Found it!!

    $scope.$parent.$parent.model.culture .. :D

  • Ulrich Wagner Gade Ebsen 127 posts 277 karma points
    Jan 23, 2020 @ 21:47
    Ulrich Wagner Gade Ebsen
    0

    By the way - the editor I'm building is for this layout.. ;) enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft