Copied to clipboard

Flag this post as spam?

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


  • Moran 265 posts 863 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 4431 posts 17864 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 265 posts 863 karma points
    Jun 17, 2014 @ 06:32
    Moran
    0

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

  • Dave Woestenborghs 3205 posts 10708 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 2243 posts 10956 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