create new tag
, view all tags

FileListPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on FileListPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Development discussion for FileListPlugin

-- VinodKulkarni - 14 Apr 2005

I almost missed this new Plugin. Thank you very much for sharing it with the TWikiCommunity!


  1. Package the Plugin without the extra FileListPlugin-0.6 directory, e.g. put data and lib dirs directly below root
  2. Name the Plugin package FileListPlugin.zip, e.g. without the version number. Some tools depend on this
  3. How about measuring and documenting the PluginBenchmarks?
  4. I made some minor changes to the topic: Changed SHORTDESCRIPTION, added the Appraisal row to the table.
  5. The Plugin code has some calls to core code that might break in the future: TWiki::formatTime, TWiki::Attach::filenameToIcon, TWiki::handleNativeUrlEncode, TWiki::Store::readTopicText. For the read you could use TWiki::Func::readTopic or deprecated TWiki::Func::readTopic.
  6. Remove all DISABLE_ functions to gain some compile speed

-- PeterThoeny - 29 Apr 2005

added .zip to CVS

-- WillNorris - 19 Jul 2005

Under Dakar I get the following error:

TWiki detected an error or attempted hack - please check your TWiki logs and webserver logs for more information.

Undefined subroutine &TWiki::formatTime called

-- ArthurClemens - 02 Oct 2005

Modified the plugin to support Dakar release. Download from Plugin web.

-- SopanShewale - 03 Mar 2006

We installed this Plugin on Cairo Sep 2004 as per the instructions , but nothing happens. Does someone have a URL with an example of this Plugin in action?

-- PeterJones - 15 Mar 2006

Older version found in CVS does work for Cairo

-- PeterJones - 30 Mar 2006

It would be really nice to be able to restrict the list of attachments by name in some way. How about an optional regex="..." parameter? I guess that untainting the regex in the same way as in lib/twiki/Search.pm would deal with the security issues.

I'm new to TWiki, but I might have a go at this myself in a little while if no-one else does.

-- PeterKeller - 04 Apr 2006

Surely this would be better named AttachmentListPlugin ?

-- MartinCleaver - 04 Apr 2006

I'm getting a lot of view: Use of uninitialized value in concatenation (.) or string at /var/www/brightcarvings.com/TWiki/lib/TWiki/Plugins/FileListPlugin.pm

in my apache logs. I tried to fix it but I simply moved it a few lines down to another occrence which doesn't really make a lot of sense to me (where it's trying to define $viewfileUrl). My limited knowledge of Perl doesn't seem to be able to fix it

-- ChrisHogan - 01 Dec 2006

I have update the plugin to version 0.8: reworked for TWiki 4.1 and optimized; activated filter parameter, added topic view permission check.

-- ArthurClemens - 17 Dec 2006

Does it also work on TWiki 4.0? Please update the form accordingly.

-- PeterThoeny - 17 Dec 2006


Thanks for making the changes. Peter, The plugin works on TWiki 4.0 (tested on latest 4.0.5 version). I have tested the filters feature on my test instance of twiki-works fine.

-- SopanShewale - 17 Dec 2006

I have a couple of ideas for new features

  • Filter on date, user, comment. That would mean that the current filter would actually better named extension.
    • I was thinking about this syntax (each a comma separated list)
      • showuser, hideuser
      • DONE showextension, hideextension
      • showcomment, hidecomment (show or hide if yes or no comment)
  • DONE Accept multiple topics, multiple webs.
  • DONE Header text in case of hits
  • DONE Alt text in case of no hits
  • DONE $imgTag to generate img tags with height, width and title param
  • Rename this plugin to AttachmentListPlugin, with ATTACHMENTLIST as variable - to be discussed

-- ArthurClemens - 17 Dec 2006

This has great potential. Does this need further support from the core?

-- FranzJosefSilli - 17 Dec 2006

I think a number of features can be implemented in Attach.pm. So yes, support in the form of willingness smile

-- ArthurClemens - 17 Dec 2006

ArthurClemens Thats gr8 idea. Actuall we were thinking since long time to feature's which are provided by grep and find commands on filesystems. Also Renaming to ATTACHMENTLIST is good idea.

-- SopanShewale - 18 Dec 2006

Add on simple syntax for displaying (or filtering) the list of all attachments within specified web(s) (such as topic="all" ) and we'd have something I've felt has been missing in TWiki for a long time: a single place to view all attachments in a web rather than having to remember the specific topic they're attached to.

-- LynnwoodBrown - 03 Jan 2007

Just committed support for hidden attachments, see Bugs:Item4268. Didn't made a new release, though.

-- AntonioTerceiro - 18 Jun 2007

I have updated the plugin with:

  • topic parameter: a list of topics, or a wildcard
  • web parameter: a list of web, or a wildcard
  • access control check for attachments from these topics/webs
  • exclusion filters on topic, web, filename, extension
  • listed file count format parameter

-- ArthurClemens - 20 Nov 2007

I have added:

  • rendering of images
    • optionally calculate image sizes
  • limit parameter
  • format parameter $fileExtensions to list the extensions of displayed files

-- ArthurClemens - 21 Nov 2007

These are very nice changes, immediately useful for one of my applications. The limit parameter would be even more useful if it could be combined with a sort parameter e.g. to list the 5 most recent files.

-- JohnFitzpatrick - 29 Nov 2007

I have added sort options written by Rohan Moitra. And I have finally renamed the plugin to AttachmentListPlugin.

Please continue discussions on AttachmentListPluginDev.

-- ArthurClemens - 06 Dec 2007

Edit | Attach | Watch | Print version | History: r25 < r24 < r23 < r22 < r21 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r25 - 2007-12-07 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.