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
get the error
Error loading MacroEngine script (file: )
my code....
<umbraco:Macro runat="server" language="cshtml"> @using umbraco.MacroEngines; @{ <ul> @foreach(var item in DynamicModel.Children){ <li>@item.Name</li> }</ul> }</umbraco:Macro>
Hi Rocoeh,
You could do something like this
@{ var sortedList = Model.Children.OrderBy("createDate descending"); foreach(var page in sortedList){ <li><a href="@page.Url">@page.Name</a></li> } }
Hope it helps
//fuji
Hi. Just replace "DynamicModel" to "Model".
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
get all children of current node
get the error
Error loading MacroEngine script (file: )
my code....
<umbraco:Macro runat="server" language="cshtml">
@using umbraco.MacroEngines;
@{
<ul>
@foreach(var item in DynamicModel.Children){
<li>@item.Name</li>
}
</ul>
}
</umbraco:Macro>
Hi Rocoeh,
You could do something like this
Hope it helps
//fuji
Hi. Just replace "DynamicModel" to "Model".
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.