Copied to clipboard

Flag this post as spam?

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


  • Gogo Dev 30 posts 187 karma points
    Aug 07, 2019 @ 12:49
    Gogo Dev
    0

    I'm trying to get the items from the selection to then get the children attributes from the items but as you can expect it doesn't work. pls help.Here's the code

  • Rhys Hamilton 140 posts 942 karma points
    Aug 07, 2019 @ 13:14
    Rhys Hamilton
    100

    Have you tried using item.Children in your second foreach statment?

    Like so:

        foreach (var value in item.Children)
        {
            <div class="nav-item">
                <a href="@value.Name">@item.Name</a>
            </div>
        }
    
  • Gogo Dev 30 posts 187 karma points
    Aug 09, 2019 @ 13:16
    Gogo Dev
    0

    After getting to know umbraco better these last days I now realise that your answer surely works thx.

Please Sign in or register to post replies

Write your reply to:

Draft