As expected it will give me 6 nodes instead with duplicate destination node. I was trying to filter the collections by inspecting the Path property of the destination node ( something like .Where(dest = destPath.contains(AusNode))
But somehow the Path property of the the Destination object is always NULL.
Anyone encounters this problem before? Is this a bug, or am I missing something?
using Linq to Umbraco in multisite problem (Path property always return NULL)
Hi All, This will be probably a question for @slace or whoever used linq2umbraco extensively before.
I am running umbraco 4.5.2 and using Linq2Umbraco for my website. Here is my rough strucuture of my current site
Aus Home
- DestinationLanding
- Dest 1
- Dest 2
- Dest 3
NZ Home ( NZ node is a copy node from Aus Home node)
- Destination Landing
- Dest 1
- Dest 2
- Dest 3
Below is my method to get the all destination for its site :
public static IEnumerable<Destination> GetAllDestinations()
{
Tree<Destination> dests = MatDataContext.Instance.Destinations;
return dests;
}
As expected it will give me 6 nodes instead with duplicate destination node. I was trying to filter the collections by inspecting the Path property of the destination node ( something like .Where(dest = destPath.contains(AusNode))
But somehow the Path property of the the Destination object is always NULL.
Anyone encounters this problem before? Is this a bug, or am I missing something?
Cheers
I have the same issue (umbraco v 4.7.0 (Assembly version: 1.0.4090.38017)). Any solvings yet?
Also having the issue, 4.7.1.1. Is there a codeplex issue for this?
Still a problem with 4.7.2
is working on a reply...