Copied to clipboard

Flag this post as spam?

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


  • André Lange 108 posts 410 karma points
    Sep 10, 2020 @ 12:44
    André Lange
    0

    Get children of page on multi language site

    I have 3 languages on my site, and i am trying to get links for the navigation.

    So from my frontpage, i am trying to get the children of that page. But it asks about something called a predicate?

    i am using this:

    children = currentPage.AncestorOrSelf<Frontpage>().Children();
    

    how do i use the predicate? I just need the children of the frontpage.

  • Amir Khan 1284 posts 2741 karma points
    Sep 10, 2020 @ 19:36
    Amir Khan
    0

    This is from the snippets in the backoffice, it will list all of your child pages under the home node.

    https://gist.github.com/amirkhan81/4d2df1b6d0719faae0c69584e24e3a01

  • André Lange 108 posts 410 karma points
    Sep 11, 2020 @ 11:48
    André Lange
    0

    i dont see how that helps me. I dont know what the predicate is ?

Please Sign in or register to post replies

Write your reply to:

Draft