We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello
    I got the following call:
    ul class="bulletList">
                  [!Ditto?id=`dt3`&parents=`26`&tpl=`tpl-LinkListing`&hideFolders=`1`&orderBy=`longtitle, ASC`&language=`german`&filter=`type,reference,9`&display=`10`&randomize=`1`!]


    However, I just cannot get ditto to sort the output by longtitle ASC.

    I’d like to get 10 listings randomly, sorted by longtitle - whatever syntax I use, I just don’t get it to work.

    Hope somebody can help.

    Thank you
      • 8609
      • 607 Posts
      Could be wrong but try removing that comma between longtitle and ASC
        • 19889
        • 616 Posts
        tried that before - didn’t work either
          • 4172
          • 5,888 Posts
          you can try it with nested calls:

          [!Ditto?id=`dt3`&documents=`[[Ditto? &parents=`26`&tpl=`commadelimeted` &hideFolders=`1` &filter=`type,reference,9` &display=`10` &randomize=`1`]]`&tpl=`tpl-LinkListing`&orderBy=`longtitle ASC`&language=`german`!]

          chunk commadelimeted:
          [+id+],


          or try
          &tpl=`@CODE:[+id+],`
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36926
            • 701 Posts
            doesn’t &randomize randomize the order?
              • 19889
              • 616 Posts
              the way I understand it is that randomize randomizes the documents, but not the order?!
                • 19889
                • 616 Posts
                Quote from: bennyb at May 31, 2010, 12:54 PM

                doesn’t &randomize randomize the order?

                sorting works but it doesn’t randomizes the output?
                  • 36926
                  • 701 Posts
                  Quote from: mmjaeger at May 31, 2010, 01:02 PM

                  the way I understand it is that randomize randomizes the documents, but not the order?!

                  Just had a quick look on the ditto site and it says

                  randomize - Randomize the order of the output
                    • 19889
                    • 616 Posts
                    Quote from: bennyb at May 31, 2010, 01:18 PM

                    Quote from: mmjaeger at May 31, 2010, 01:02 PM

                    the way I understand it is that randomize randomizes the documents, but not the order?!

                    Just had a quick look on the ditto site and it says

                    randomize - Randomize the order of the output

                    I’m afraid you’re right - however, there has to be a way to order the randomized output?!
                      • 36926
                      • 701 Posts
                      Quote from: mmjaeger at May 31, 2010, 01:20 PM

                      Quote from: bennyb at May 31, 2010, 01:18 PM

                      Quote from: mmjaeger at May 31, 2010, 01:02 PM

                      the way I understand it is that randomize randomizes the documents, but not the order?!

                      Just had a quick look on the ditto site and it says

                      randomize - Randomize the order of the output

                      I’m afraid you’re right - however, there has to be a way to order the randomized output?!

                      Yeah you would of thought so, have you tried Bruno17 nested suggestion.