Copied to clipboard

Flag this post as spam?

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


  • Moran 277 posts 885 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 4457 posts 17970 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 277 posts 885 karma points
    Jun 17, 2014 @ 06:32
    Moran
    0

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

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x 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 2958 posts 15629 karma points MVP 7x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies