Hi, can anyone tell me how to include a clause when listing children within a foreach statement?
For example, the following lists all Children nodes, but I want to list all Children except a particular DoctypeName, i.e. everything except Posts (for example).
@foreach (var page in homeNode.Children.Where("Visible"))
Children DoctypeName clause
Hi, can anyone tell me how to include a clause when listing children within a foreach statement?
For example, the following lists all Children nodes, but I want to list all Children except a particular DoctypeName, i.e. everything except Posts (for example).
Any ideas? Thanks as ever...
Barney
You're looking for the nodeTypeAlias in that case, try this:
Thanks Sebastiaan, works a treat
is working on a reply...