-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi Andy
I am trying to extend my IPropertyValueGetter Method to support a language fallback but can’t figure out what’s not working.
Say for example that Umbraco has 2 languages, English and Spanish, and English is defined as the fallback language for Spanish. (English also being the default)
Now, consider that I have page nodes in the both content trees that pick a “category” from a common area (just another set of nodes).
What I was expecting is that if the Category node isn’t published in Spanish, then the Spanish pages would ‘fallback’ to the Category from the English language tree.
My viewmodel property is decorated with
[PropertyMapping(PropertyValueGetter = typeof(CategoriesGetter), FallbackMethods = new[] { Fallback.Language })]
And the method passes the fallback onto the Umbraco IPublishedElement Value() method.
Sorry I am not sure if this is a mapping issue or an Umbraco issue, or if I’m misunderstanding how fallbacks work. Does my scenario match your understanding?
Thanks
Andrew