Copied to clipboard

Flag this post as spam?

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


  • Nicolai 48 posts 201 karma points
    Jun 14, 2015 @ 17:37
    Nicolai
    0

    Get all nodes with same generic property

    I would like to get articles which have the same magazine as a generic property.

    How would one create such a search? This is the generic property on articles

    var articles = Umbraco.Content("827");  //Contain all articles
    
  • Kasper Holm 47 posts 180 karma points
    Jun 14, 2015 @ 19:30
    Kasper Holm
    0

    Hey Nicolai

    if you are using uQuery you can try something like this var articles = currentPage.GetDescendantNodes().Where(x => x.GetProperty<int>("homepageArticleMagazine") == 827);

  • Nicolai 48 posts 201 karma points
    Jun 15, 2015 @ 06:46
    Nicolai
    0

    I've just tested this and it does not work unfortunately :-(

    It gives me, Error loading Partial View script

  • 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