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

    Just a quick one, I’ve setup the newslistings snippet and rather than listing them in published order - i’d like to list them in alphabetical order by title or description.

    Possible?

    Regards

    0ad
      • 7923
      • 4,213 Posts
      From the documentation:

      &sortby - field to sort by (reccomended values include createdon, pub_date, editedon; reverts to createdon if value is invalid) ["createdon"]
      &sortdir - direction to sort by ["desc"]


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27
        • 117 Posts
        cheers doze

        no sort by title or description then...

        oh well, its still awesome
          • 7923
          • 4,213 Posts
          Quote from: 0ad at May 17, 2006, 05:04 PM

          no sort by title or description then...
          What do you mean? Just put the field you want to sort by to the &sortby parameter in the snippet call, pagetitle, longtitle, description, whatever you want. Then use the &sortdir parameter to define the sort order, asc for ascending and desc for descending.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 27
            • 117 Posts
            ah sweet!

            i thought
            createdon, pub_date, editedon
            were the choices!

            nice one doze, maybe that should be my name (or dozey!)

            0ad