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 506 posts 653 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

Please Sign in or register to post replies

Write your reply to:

Draft