Copied to clipboard

Flag this post as spam?

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


  • Moran 269 posts 867 karma points
    Jun 15, 2014 @ 09:29
    Moran
    0

    Calling GetVortoValue

    How can I call "GetVortoValue" method?

    I am trying to call it like this:

    @Model.Content.GetVortoValue("bodyText")

    But it doesn't seem to work.

     

  • Dennis Aaen 4435 posts 17896 karma points admin hq c-trib
    Jun 16, 2014 @ 22:25
    Dennis Aaen
    0

    Hi Moran,

    Have you tried something like this:

    @Model.GetVortoValue("bodyText")

    Hope this helps,

    /Dennis

  • Moran 269 posts 867 karma points
    Jun 17, 2014 @ 06:32
    Moran
    0

    No, it doesn't work I get a compilation error.

  • Dave Woestenborghs 3219 posts 10856 karma points MVP 4x admin c-trib
    Jun 17, 2014 @ 08:00
    Dave Woestenborghs
    100

    I think your missing a using.

    Try adding this at the top of your view :

    @using  Our.Umbraco.Vorto.Extensions;

    Dave

  • Matt Brailsford 2311 posts 11221 karma points MVP 6x c-trib
    Jun 18, 2014 @ 11:07
    Matt Brailsford
    0

    Sorry, was away on holiday. As Dave says though, be sure to add the Our.Umbraco.Vorto.Extensions using statement to the top of your view.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft