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

    how to call a Snippet in an wayfinder.config.php?

    I’ve tried it on this way:

    $level = '@CODE:[[UltimateParent]]';
    


    I try to create a Config file for my Submenus and want to use the Wayfinder.
    Or do i have to use the $modx Object for it?

    greets
    moveax
      • 7455
      • 2,204 Posts
      you can run snippets but &level means how deep to go and ultimateparent is the top level id
      so level means go x level deep
        follow me on twitter: @dimmy01
        • 20310
        • 3 Posts
        // EDIT: I’ve found my failure