We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2191
    • 64 Posts
    how can i get the pictures to display in alphabetical order according to their title?
      • 7923
      • 4,213 Posts
      use &order_by and &order_direction parameters, look at the wiki for the parameter explanations


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 2191
        • 64 Posts
        Sorry, I couldn’t find a clear explanation from the wiki. Could you just tell me exactly what parameter I’d have to put in?
          • 7923
          • 4,213 Posts
          The wiki page says:


          • order_by = [ "date" | "pos" | "filename" | "title" | "id" ] : Database field name to order pictures by, Default: "pos,date"
          • order_direction = [ "ASC" | "DESC" ] : Order direction, ascending or descending. Default: "DESC"

          So it would be &order_by=`title`, the order direction is descending by default.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 2191
            • 64 Posts
            Thanks alot. I see it now...must have been blind last night. wink
              • 7923
              • 4,213 Posts
              Yea, but I have to admit that the wiki page itself is not very clear how it is now.. I will format the parameters / placeholders etc into nice tables and make better explanations there when I have some time.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 20349 ☆ A M B ☆
                • 453 Posts
                Quote from: doze at Feb 26, 2007, 08:08 AM

                Yea, but I have to admit that the wiki page itself is not very clear how it is now.. I will format the parameters / placeholders etc into nice tables and make better explanations there when I have some time.

                Good idea. smiley
                You will probably save a lot of time answering the questions grin
                  BASE - Web Design Studio
                  MODX Ambassador

                  Website