Copied to clipboard

Flag this post as spam?

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


  • Bill 81 posts 83 karma points
    Sep 22, 2014 @ 13:05
    Bill
    0

    Recursive GetVorto()

    Hello, I'm trying to get a vorto field to be shown recursively. How can I do it?

    Thank you in advance

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Sep 22, 2014 @ 14:31
    Matt Brailsford
    0

    Hi Bill,

    The following should work

    @Model.Content.GetVortoValue("propAlias", recursive:true)
    

    Many thanks

    Matt

  • Bill 81 posts 83 karma points
    Sep 22, 2014 @ 14:56
    Bill
    0

    Hello Matt,
    I've tried that (before I posted, maybe I should be more clear about it) and it didnt work. let me elaborate more....

    So, I a have a common property in all my pages and I have two languages installed.

    1. Root (property exists and its filled)
    2. Level 2 Page (property exists and its filled)
    3. Level 3 Page (property exists and its NOT filled)
    Lets just say that in my English Version of the node I havent completed said property (Level 3) and I want to get the property value of Level 2 Page that exists and its filled.
    If I use the syntax above I get nothing even though the upper level page property is filled. BUT if the property doesnt exist in the doctype but exists it the root for example I get the value from the root. In short your example works fine for a property that is not existent in the current document (ragerdless if its filled)
    I hope that helps to figure this out...
  • David Gregory 85 posts 211 karma points
    Dec 10, 2015 @ 16:25
    David Gregory
    0

    Hi

    I'm getting the exact same problem, nothing returned.

    @Html.Raw(Model.Content.GetVortoValue("whosWho",recursive:true))

    Did you find a solution Bill?

Please Sign in or register to post replies

Write your reply to:

Draft