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

    I need to build a link to the 1st child of the current document (using its document alias)...

    Is there something like [~[*parent*]~] but for 1st child?


    TIA, and sorry for the bad english smiley

    luciano
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      No, you’ll need to use Wayfinder with the appropriate parameters for that.
        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
        • 36592
        • 970 Posts
        Or you can make original snippet by modifying "FirstChildRedirect" snippet, which is included in the MODx installation.
        (It redirects to the first child(decided with ’menuindex’). Just modfy it to return the document id.)