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