We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    I have this tree:
    web
    -> Prod (14)
    -> Prod1 (15)
    -> Prod2 (16)
    en
    -> test (17)
    ->test1 (18)

    if i do [[UltimateParent? &topLevel=`2`]] in resurce 16 (Prod2) UltimateParent return 16 not 14 !!!!
    Help me sad
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Prod2 is not a child of Prod, it is a sibling. The parent of Prod2 is 0, the web context.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36613
        • 328 Posts
        The editor trim the space but I assure you that prod2 is the son of Prod

        web

        • -> Prod (14)
          [list]
          [li] Prod1 (15)
        • Prod2 (16)
        [/li]
        [/list]

        [ed. note: cristianb88 last edited this post 14 years, 1 month ago.]