Copied to clipboard

Flag this post as spam?

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


  • andrew shearer 513 posts 663 karma points
    Mar 31, 2017 @ 04:30
    andrew shearer
    0

    possible Umbraco Media issue with Culture context?

    I have a multilingual Umbraco website with a Culture set against each language tree in the typical way. I’ve noticed that when the Language isn’t English (e.g. “mi-NZ") that the following code returns no results:

    var mediaFolderId = 3921;
    var folder = UmbracoContext.Current.MediaCache.GetById(mediaFolderId);
    var children = folder.Children;
    

    This returns a full list of children when executed on a template in the context of the English tree, but nothing in the other tree.

    Is this a known issue? this is on Umbraco 7.4.3

    thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies