-
- 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.
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