Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten 105 posts 345 karma points
    Oct 27, 2017 @ 08:23
    Morten
    0

    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")?

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Oct 30, 2017 @ 09:51
    Alex Skrypnyk
    0

    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

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Nov 01, 2017 @ 13:00
    Alex Skrypnyk
    0

    Hi Morten

    Did you solve the issue? Share with our community, please )

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft