We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28514
    • 25 Posts
    How can I change page ID’s

    I want to order my menu. But the page with ID 16 is always put at the end, but I want hem to put him in te beginnen in my websites menu. I already put the page with ID 16 on the top of the three, but it doesn’t seem to work. I also tried $sortby but that doesn’t have any effect on the order of my menu

    what to do?
      • 29076
      • 615 Posts
      Well, &sortBy=`` should do it. See page 85 in The Almost Complete Guide to Creating Menus in MODx using Wayfinder.

      You can sort by menuindex, pagetitle and so on. Chech your backtics ``. smiley
        I think, thererfor I am! But what I am, and why...?
        • 28514
        • 25 Posts
        I have this:

        [!Wayfinder?startId=`[[UltimateParent]]` $sortby=`random` &cssTpl=`menutpl` &outerTpl=`menudiv` &outerClass=`DivRechts` &rowTpl=`menutest’]]

        but my website menu stays the same
          • 29076
          • 615 Posts
          Quote from: steve07 at Nov 20, 2009, 09:15 AM

          I have this:

          [!Wayfinder?startId=`[[UltimateParent]]` $sortby=`random` &cssTpl=`menutpl` &outerTpl=`menudiv` &outerClass=`DivRechts` &rowTpl=`menutest’]]

          but my website menu stays the same
          You have $sortby. It should be &sortBy.
          smiley
            I think, thererfor I am! But what I am, and why...?
            • 28514
            • 25 Posts
            Ok, I changed it but it still doesn’t work

            [!Wayfinder?startId=`[[UltimateParent]]` &sortBy=`random` &cssTpl=`menutpl` &outerTpl=`menudiv` &outerClass=`DivRechts` &rowTpl=`menutest’]]

            Also when I change my wayfinder snippet code, nothing happens
              • 33337
              • 3,975 Posts
              You need to use &sortBy=`menuindex` and assign menu index to each of your documents appropriately.
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 28514
                • 25 Posts
                Just assigned my menuindex (from 1 to 20, for each page different number) and used soryBy menuindex , but still nog change huh
                  • 26931
                  • 2,314 Posts
                  are you running mysql 5.0.51 by any chance? if so, there’s a bug in that version concerning sorting of items
                  -> http://modxcms.com/forums/index.php/topic,26742.msg163584.html#msg163584
                    • 28514
                    • 25 Posts
                    Yes,

                    5.0.51a-community so that might be the problem. There is nothing to do about it? Except downgrading/upgrading te mysql?
                      • 26931
                      • 2,314 Posts
                      5.0.51a-community so that might be the problem
                      yes