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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...