Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Have you tried using item.Children in your second foreach statment?
item.Children
Like so:
foreach (var value in item.Children) { <div class="nav-item"> <a href="@value.Name">@item.Name</a> </div> }
After getting to know umbraco better these last days I now realise that your answer surely works thx.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Foreach in foreach loop
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.
Have you tried using
item.Children
in your second foreach statment?Like so:
After getting to know umbraco better these last days I now realise that your answer surely works thx.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.