Is there any way of doing something like n.Children.Where("Visible").HasAccess() to get a list of visible available nodes? I can do it with an if condition inside the foreach of course, but is there a nicer way?
Ah! That's exactly it, I completely forgot about expressions in Where(), thanks Douglas. As it turns out the client has now added lots of other checks that make it ugly anyway, but I'll remember this for the future :o)
HasAccess() on lists
Is there any way of doing something like n.Children.Where("Visible").HasAccess() to get a list of visible available nodes? I can do it with an if condition inside the foreach of course, but is there a nicer way?
Hi Rob,
Are you doing something like
//fuji
Hi Rob, you can use this, too:
@Rob, here's what you're looking for:
The Where method is really powerful, just be careful when dealing with a large amount of nodes as there have been some reported performance issues.
Ah! That's exactly it, I completely forgot about expressions in Where(), thanks Douglas. As it turns out the client has now added lots of other checks that make it ugly anyway, but I'll remember this for the future :o)
No problem. Glad I could help.
is working on a reply...