Copied to clipboard

Flag this post as spam?

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


  • pubudu 30 posts 133 karma points
    Apr 24, 2019 @ 10:07
    pubudu
    0

    var subPages = page.Children.Where("Visible");

    What is the other word i should use after "Visible"?

    enter image description here

  • Alex Skrypnyk 6134 posts 23953 karma points MVP 8x admin c-trib
    Apr 24, 2019 @ 10:18
    Alex Skrypnyk
    0

    Hi

    Use this code:

    var childrenPages = Umbraco.AssignedContentItem.Children.Where(x => x.IsVisible());
    
  • pubudu 30 posts 133 karma points
    Apr 24, 2019 @ 10:59
    pubudu
    0

    I try that.but it make occur thisenter image description here

  • Alex Skrypnyk 6134 posts 23953 karma points MVP 8x admin c-trib
    Apr 24, 2019 @ 11:40
    Alex Skrypnyk
    1

    then url doesn't contain "?"

  • Rhys Hamilton 140 posts 942 karma points
    Apr 24, 2019 @ 11:43
    Rhys Hamilton
    1

    I think this is a separate issue than what your original question is. Going on the assumption that the GetSafeQuery is a custom method, it looks to me that posq variable is returning null, because there is no value ? within your string.

  • Alex Skrypnyk 6134 posts 23953 karma points MVP 8x admin c-trib
    Apr 24, 2019 @ 11:48
    Alex Skrypnyk
    1

    what do you want to achieve with GetSafeQuery?

  • Alex Skrypnyk 6134 posts 23953 karma points MVP 8x admin c-trib
    May 09, 2019 @ 09:23
    Alex Skrypnyk
    0

    Hello Pubudu

    Did you solve this issue?

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft