It's a simple Listpage - I used a listview with doctype listAllPages
I want to list all children of currentpage with doctype contentPage
Many Thanks/Christina
The code
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ListPages>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
IEnumerable<ListPages> list = Model.Content.Children<ContentPage>();
foreach (ContentPage item in list)
{
@item.Name;
}
}
Help with a strong typed query - from a listview
Hi I need som help with strongtyped models query
It's a simple Listpage - I used a listview with doctype listAllPages I want to list all children of currentpage with doctype contentPage Many Thanks/Christina The code
Hi Christina
Use this code:
The problem with code provided by you is that you declared IEnumerable
Thanks,
Alex
Thanks you so much
You are welcome, have a great day!
is working on a reply...