Summary: Talk page for FileList.
Maintainer: HansB
Users: (View? / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.


Hi. thanks for this - it looks/feels nice. however, i noticed that while FileList seems to work great with pages that already have files uploaded to them, it malfunctions when added to a page with no uploaded files - it produces this error:

  • Warning: Invalid argument supplied for foreach() in /my/directory/pmwiki/cookbook/filelist_sortable.php on line 218

I found that providing the simple conditional if($filelist) { foreach($filelist ...) } seemed to counter this error on my end...

Also, two suggestions for coders more able than I:

  • I wonder - how challenging would it be to incorporate the renaming & deletion capabilities of Attachtable, which doesn't have the fancy sorting capabilities found here?
  • And, is it at all possible to give FileList (or any of the other filelisting flavors) the same fmt=# capabilities that (:pagelist:) has. it would be amazing to be able to reference a custom pagelist template for file display...

Just some ideas overtones99 (2008-03-05)

If I remember discusssions about this correctly, filelist has quite different needs than pagelist, and it is not very feasible to port pagelist capabilities to filelist. So anything for file listing needs to be developed separately. HansB

Some feedback

  • Kb (Kilo bites) should be KB
  • can we have an option to use a character rather than an image for the dots?
  • can files be selected by extension or filename wildcard?
thanks simon September 30, 2012, at 10:30 PM

Some feedback

  • I converted mine to MB, since I'm using large audio files. :-)
  • There is code commented out in filelist_sortable.php that is critical. Remarks say, "#DIFFERENT from filelist.php all these lines are normally used, and not commented out." But that first section is necessary: If I specify a different page name (:filelist Group.Page:), it will list those pages, but the links and file sizes will be looking in the current page's (not the specified page's) folder. Note that I am using $UploadPrefixFmt = '/$Group/$Name'; Uncommenting that code fixes it.
thanks hermick September 30, 2012, at 10:30 PM

Talk page for the FileList recipe (users?).