Copied to clipboard

Flag this post as spam?

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


  • Moran 285 posts 934 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 4499 posts 18254 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 285 posts 934 karma points
    Jun 17, 2014 @ 06:32
    Moran
    0

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

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x 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 4124 posts 22215 karma points MVP 9x 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