We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello
    I’m having some issues with the sorting - I’d like to sort by date in DESC order - however, it’s just not working - am I missing anything?

    Here’s my code:
    [!FileDownload?&getFolder=`./assets/files/`&tplList=`tpl-downloads`&imgLocat=`assets/images/icons` &imgTypes=`tplIcons`&includeFileSize=`0`&skipTableCheck=`1`&browseDirectories=`1` &firstFolderCss=`fd-firstfolder`&lastFolderCss=`fd-lastfolder`&firstFileCss=`fd-firstfile`&lastFileCss=`fd-lastfile`&altCss=`table-tr-odd`&&userSort=`date`&sortOrder=`DESC`&showExt=`txt,doc,xls,pdf,jpg,zip`&dateFormat=`Y-m-d`!]


    Thank you in advance for your help.
      • 36592
      • 970 Posts
      I think the FileDownload snippet which can be downloaded from MuddyDogPaws’s site is version 2.5. But newer version(Ver. 2.6) can be get from here.
      I’m not sure the newer version solve your problem, but on my site it’s working correctly.
      I’m using this code which is written in the manual included in the distributed ZIP file.
      [!FileDownload? &getFolder=`assets/snippets/filedownload` &sortOrder=`desc`!]