Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • William Djingga 27 posts 53 karma points
    Feb 18, 2011 @ 07:50
    William Djingga
    0

    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

     

     

     

     

     

     

  • Marcel Berberich 11 posts 33 karma points
    Jul 12, 2011 @ 11:29
    Marcel Berberich
    0

    I have the same issue (umbraco v 4.7.0 (Assembly version: 1.0.4090.38017)). Any solvings yet?

  • Henri Toivonen 77 posts 111 karma points
    Mar 14, 2012 @ 11:30
    Henri Toivonen
    0

    Also having the issue, 4.7.1.1. Is there a codeplex issue for this?

  • Henri Toivonen 77 posts 111 karma points
    May 22, 2012 @ 13:02
    Henri Toivonen
    0

    Still a problem with 4.7.2

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies