IPublishedContent only contains "current culture" information
Hi,
According to this article here in the Umbraco documentation, IPublishedContent should contain all the language variants, accessible through the language codes.
However when i query Umbraco with this query inside my controller:
var selection = _umbracoHelper.Content(Guid.Parse("777c01de-34ab-4630-a2e7-e8bf2b40b35e")).ChildrenOfType("oplevelse");
It only contains the default culture info. If i hover over ".ChildrenOfType" it states the following:
culture: The specific culture to filter for. If null, the default culture will be used.
But I need all the language variants. How do I return IPublishedContent which includes all the variants without having to do a query for every single language?
IPublishedContent only contains "current culture" information
Hi,
According to this article here in the Umbraco documentation, IPublishedContent should contain all the language variants, accessible through the language codes.
However when i query Umbraco with this query inside my controller:
It only contains the default culture info. If i hover over ".ChildrenOfType" it states the following:
But I need all the language variants. How do I return IPublishedContent which includes all the variants without having to do a query for every single language?
After upgrade to Umbraco 11 i now get all the language variants in one call.
How do you do it in one call in U11? If I try your "selection" I still only get for the "main" culture.
But they can be found with .ChildrenOfType("oplevelse", culture) for each culture.
Thomas
is working on a reply...