Zone.UmbracoMapper With multi Languages properties
Hi Everyone,
I'm starting to use Umbraco mapper with Umbraco V8.1.3...
I have content with "name" that multi-language and "icon",
the icon property is always null unless I Allow varying by culture!!
this is my code:
var content = Umbraco.Content(Helper.CategoryContentId);
var result = new List<CategoryDto>();
var mapper = new UmbracoMapper();
mapper.MapCollection(content.ChildrenForAllCultures, result, lan, new Dictionary<string, PropertyMapping>
{
{
"CategoryName", new PropertyMapping
{
SourceProperty = CatrgoryProperties.categoryName
}
},
{
"Icon", new PropertyMapping
{
SourceProperty = CatrgoryProperties.iconName,
SourceRelatedProperty = "Url"
}
}
});
return Ok(result);
Zone.UmbracoMapper With multi Languages properties
Hi Everyone,
I'm starting to use Umbraco mapper with Umbraco V8.1.3... I have content with "name" that multi-language and "icon", the icon property is always null unless I Allow varying by culture!!
this is my code:
is there a way to get icon property ?
is working on a reply...