Closed Braininator closed 11 years ago
fixed here https://github.com/goldsky/FileDownload-R/commit/96bf793a06e5851552cac5b836ef472c7c206f3d#L53R520 extra will be updated as version 1.1.4-pl change your snippet call of this parameter:
&sortBy=`unixdate`
this will also provide the [[+fd.unixdate]]
placeholder.
When using the dateFormat parameter to change the date format to anything other than the default, attempting to sort the file list by date results in the list being sorted by how the date displays, not the actual date itself.
For example, if I have the following dates in desc sort order, 2013-01-18 2013-02-25 2013-03-7
if I then apply &dateFormat=
d/m/Y
, the list is sorted by day, not the entire date 7/03/2013 18/01/2013 25/02/1013Full call: [[!FileDownload? &getDir=
/2013
&sortBy=date
&sortOrder=desc
&countDownloads=1
&tplWrapper=fdTable
&dateFormat=d/m/Y
]]filedownloadr-1.1.3-pl MODX Revolution 2.2.2-pl