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?