This is what I have right now. I feel like it wouldn't be much help if I showed all the different solutions I have tried in achieving this so far. So this is the setup without trying to sort the nodes.
@{
// Get all info nodes in rootnode
var infoPosts = rootPage.Descendants("infopost_d");
// Each info post (how to sort these based upon each info post nested content DateTime property)
foreach (var infoPost in infoPosts)
{
// Get info post nested content
var infoPuffs = infoPost.GetPropertyValue<IEnumerable<IPublishedContent>>("infoPuff");
// Each nested content (each info post can only have one nested item so this foreach might not be necessary?)
foreach (var infoPuff in infoPuffs)
{
// Get nested DateTime property
// Render html
}
}
}
Sort of nodes by each nodes nested content property value
Hi,
I'm trying to sort a number of nodes based upon each nodes nested content property value but I am failing miserable...
Hi David,
Can we see the code you are using thus far to try achieve this?
Thanks
Craig
Hi,
This is what I have right now. I feel like it wouldn't be much help if I showed all the different solutions I have tried in achieving this so far. So this is the setup without trying to sort the nodes.
Best regards
is working on a reply...