Copied to clipboard

Flag this post as spam?

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


  • Kleber Hucalo 26 posts 165 karma points
    Jul 29, 2014 @ 01:34
    Kleber Hucalo
    0

    Vorto with Multinode picker

    Hi there

    I have the following code to display the content from a umbraco multinode content tree picker:

    var prod = Model.Content.GetPropertyValue("productPicker").ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).Take(8);

    @foreach (var productsid in prod) {

    var items = new DynamicNode(productsid);

    <h5>@items.GetProperty("title")</h5>

    }

     

     

     

    But this show the vorto code instead the title.

    If I use @productid.GetVortoValue("title") it does not work (does not exist).

    @items.GetVortoValue("title") does not work either.

    Any suggestion? thanks

  • Matt Brailsford 2245 posts 10978 karma points MVP 6x c-trib
    Jul 29, 2014 @ 09:32
    Matt Brailsford
    100

    Hi Kleber,

    Vorto doesn't work with DynamicNode so you might want to change that line to var items = Umbraco.TypedContent(productsid) and see if that helps.

    Many thanks

    Matt

  • Kleber Hucalo 26 posts 165 karma points
    Jul 29, 2014 @ 22:40
    Kleber Hucalo
    0

    Cool

    Works like a charm.

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft