We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    Hi All

    I am working on a Multilingual Site where I would love to use UltimateParent in a config file. In my config file I call Ultimate Parent like this
    $level='@CODE:[[UltimateParent? &topLevel=`2`]]';

    but somehow I have problems with it. It works when I am on the Parent Document but as soon as I use a Child the Navigation disappears.
    My navi Looks like this

    root
    DE
    about us
    Profile
    Credo
    ect

    I would like that when I am on about all the childrens of about would be shown even when the user clicks on Profile.

    Any Idea?

    Thanks a lot in advance.




      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You cannot use snippet tags in code; you’ll need to use the $modx->runSnippet() function.
        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
        • 2901
        • 277 Posts
        Susan Thanks a lot

        will add the call in the Wayfinder call and not in the config file.