We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Unless the user manually sets the publish date on each document the system sets it to 0.

    So, sorting by publish date would not work if a user did not set the publish date for every document.

    Therefore, Jason gave me a hand for News Listing 2.0 which uses inline SQL if’s to help out...
    • Hm. I would have presumed that if the publish date was not specifically set, it would be set to the create date by default, when saving a document.
        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
      • Unfortunately it does not appear to be that way. Perhaps that would make more sense to make it that way, though. Hmmm... one for the bugtracker?
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me