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.
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:
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
is working on a reply...