Copied to clipboard

Flag this post as spam?

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


  • Mohamed Ramez 9 posts 88 karma points
    May 11, 2017 @ 13:26
    Mohamed Ramez
    0

    Content query using Checkboxlist values

    Hi,

    I face a strange issue here, I looked for solutions where I can query the content using checkboxlist values, the output is always "null".

    string cat = "Beef";
    
    var selection = Model.Content.Site().FirstChild("recipes").Children()
                            .Where(x => x.IsVisible())
                            .Where(x => x.HasProperty("recipeCategory") &&
                            x.GetPropertyValue<string>("recipeCategory").Split(',').Contains(cat));
    

    Checkboxlist inside the content

  • 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