We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    If my understanding of the source is correct, you could load the summaries into an array, sort the array, then build the display using the sorted array.
      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
      • 18397
      • 3,250 Posts
      If you are using Ditto 1.0.2 just use &sortBy=`summary` to sort by the placeholder [+summary+]

      In 1.1 you can use &sortBy=`introtext` which is the summary field in the editor
        • 2136
        • 134 Posts
        i’d like to sort by [+title+]. i’m using 1.02, and trying &sortBy=`title` resulted in a parse error. is there a need to create and sort an array, or is there a simple way to achieve this, either with 1.02 or 1.1?

        thanks.
          Sorry - not using ModX anymore 01/01/2007
          • 18397
          • 3,250 Posts
          Title is pagetitle.
            • 2136
            • 134 Posts
            thank you - i tried it and it sorted in a reverse alphabetical order. is there another parameter i can configure to alphabetize from A-Z instead of Z-A?
              Sorry - not using ModX anymore 01/01/2007
              • 7923
              • 4,213 Posts
              Look at the documentation, &sortDir.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 2136
                • 134 Posts
                BRILLIANT! thank you!
                  Sorry - not using ModX anymore 01/01/2007
                  • 32319
                  • 129 Posts
                  All of my ditto links end up looking like:

                  http://www.domain.com/45

                  I have friendly URLs turned on and have toggled the settings around to many different configurations. Currently, my settings are:
                  Use friendly URLs: Yes
                  Prefix for friendly URLs: [Blank]
                  Suffix for friendly URLs: .html
                  Use friendly aliases: Yes
                  Use friendly alias path: No
                  Allow duplicate aliases: No
                  Automatically generate alias: No

                  The same pages that are having the problem in ditto are showing up fine in other non-ditto menus.

                  An example of the problem can be seen here:
                  http://newheights.falkicon.com/press.html

                  All of the pages do have Aliases set.

                  This only seems to be a problem with Ditto, all of the other links are working fine.

                  MODx verson 9.2.2 - Ditto Version 1.0.2
                    "Regret for the things we did can be tempered by time; it is regret for the things we did not do that is inconsolable."
                    -- Sydney Harris
                    • 18397
                    • 3,250 Posts
                    You are using [~[+id+]~] to generate your links correct?
                      • 32319
                      • 129 Posts
                      Quote from: Mark at Nov 10, 2006, 11:01 PM

                      You are using [~[+id+]~] to generate your links correct?

                      Umm... not correct...

                      I was using [+id+]... I thought I pulled it from the template that came with ditto that way but maybe I missed the outer wrapper. That fixed it undecided

                      Thanks smiley
                        "Regret for the things we did can be tempered by time; it is regret for the things we did not do that is inconsolable."
                        -- Sydney Harris

                      This discussion is closed to further replies. Keep calm and carry on.