We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for FileLister 1.0.0-beta2 by splittingred.

    Brief Description:

    A file-listing snippet for MODx Revolution.

    • Added homePathName property to filelister snippet for hiding the root path
    • Salted-hash, secure directory browsing
    • Path mapping
    • Secure downloading/viewing of files to logged-in users, usergroups
    • Fully templatable output
    • Various sorting modes
    • File extension restricting

    See the Official Documentation here:
    <a title="Official FileLister Documentation" href="http://svn.modxcms.com/docs/display/ADDON/FileLister]http://svn.modxcms.com/docs/display/ADDON/FileLister[/url]
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 4952
      • 13 Posts
      Thanks for that really nice snippet!

      Could it be that sorting by filename does not work correctly? If I call the snippet like that...

      [[!FileLister? &path=`assets/media/[[*id]]/` &fileTpl=`listIMG` &showExt=`jpg,gif,png` &showDirectories=`0` &sortBy=`filename` &sortDir=`ASC`]]


      ...FileLister correctly shows all files but they don’t get sorted by filename. The &fileTpl simply outputs [[+path]]. Also &sortBy=`date` and &sortBy=`size` do work.

      The files have names like:
      01_pictureName.jpg
      02_pictureName.jpg
      03_pictureName.jpg
      04_pictureName.jpg

      Any idea?