Possible to access Vorto values with dynamic models?
I have my ModelsBuilder set to Dll and using Model.Content.PROPERTY works just fine. However, if my site is multi-language and I use the Vorto extension, how can I access these properties using "dynamic typing"?
If I have a property called Headline and it's a Vorto textstring value, how can I access it using Model.Content.Headline instead of Model.Content.GetVortoValue("headline")?
Possible to access Vorto values with dynamic models?
I have my ModelsBuilder set to Dll and using
Model.Content.PROPERTY
works just fine. However, if my site is multi-language and I use the Vorto extension, how can I access these properties using "dynamic typing"?If I have a property called
Headline
and it's a Vorto textstring value, how can I access it usingModel.Content.Headline
instead ofModel.Content.GetVortoValue("headline")
?Hi Morten
If you have Vorto property then you have to use Vorto method all the time.
Vorto properties stores data in json format, you can't just access the data as usual property, you need to call Vorto method.
Thanks,
Alex
Hi Morten
Did you solve the issue? Share with our community, please )
Thanks,
Alex
is working on a reply...