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 10 posts 110 karma points
    Aug 07, 2019 @ 12:49
    Gogo Dev

    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 939 karma points
    Aug 07, 2019 @ 13:14
    Rhys Hamilton

    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>
  • Gogo Dev 10 posts 110 karma points
    Aug 09, 2019 @ 13:16
    Gogo Dev

    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: