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

    I’m using one document to redirect to another document, so im parsing it the id of the document that i want to go to the first child of but it doesn’t dp anything. Can anyone see what im going wrong?

    [!FirstChildRedirect &docid=`7`!]

    Cheers
    Ash
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You need to have a question mark immediately following the snippet name if there are parameters:
      [!FirstChildRedirect? &docid=`7`!]
        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
        • 2249
        • 60 Posts
        Works great,
        thanks very much

        Ash
          • 16430
          • 217 Posts
          Redirecting doesnt work for me, dont know why...
          Call inside folder: [[!FirstChildRedirect]]
          Version:2.3.0, Revo. version 2.1.3
            • 16430
            • 217 Posts
            missing [[*content]] in template...problem solved