Commit Graph

66 Commits

Author SHA1 Message Date
fe8d0bbffb Change project name to filetools 2026-01-05 10:37:51 +01:00
a3558c470e Change project name to File List Plus 2026-01-05 10:29:34 +01:00
Andreas Gohr
55e6f8f9aa fix default list separator. fixes #43 2024-04-03 13:58:32 +02:00
Andreas Gohr
afea422661 removed obsolete configs and language strings 2024-02-27 16:02:02 +01:00
Andreas Gohr
05f444a487 style cleanup 2024-02-27 15:57:33 +01:00
Andreas Gohr
1eeb87d74f adjust tests
This could really use some more tests but this has to suffice for now.
2024-02-27 15:54:14 +01:00
Andreas Gohr
28af4b6776 Major Refactoring (will need some cleanup)
This refactors the plugin from one mega syntax file into multiple
classes.

The plugin now focuses on one usecase: listing files that are external
to the wiki and making them downloadable. All other usecases have been
dropped. Also a bunch of other options have been dropped.

A new dispatcher makes it possible to deliver files without the need to
have the webserver pointing at them.
2024-02-27 14:49:08 +01:00
Andreas Gohr
1c9be8254b initial automatic cleanup 2024-02-26 11:58:11 +01:00
lpaulsen93
5cdac8ec6a Removed useless/deprecated code 2020-09-27 11:59:14 +02:00
lpaulsen93
41ca2bd314 Use '$renderer->nocache()' 2020-09-19 13:54:27 +02:00
Lars Paulsen
6ddd45c38b Added new option 'showcreator'. See #28.
If activated an additional column will be displayed showing the DokuWiki user which created the file.
Only works if option 'direct' is set to '0'.
2018-05-31 16:35:56 +02:00
LarsDW223
bfd71e37a5 Corrected image link generation for image preview.
This fixes broken preview images if media ids are used in the file pattern
(parameter 'direct=0'). Fixes #27.
2018-04-07 12:55:36 +02:00
LarsDW223
37723cbe4a Minor adjustments for ODT redesign branch. 2016-09-01 21:32:41 +02:00
LarsDW223
ec306048e5 Fixed _realpath() for UNC pathes like '\\examplepath\mypath' (will become '//examplepath/mypath'). See #1.
Here is a comparison between the output of the old and new version of _realpath():

Input: '/a/b/c/' Output old: '/a/b/c/' Output new: '/a/b/c'
Input: '//a/b/c' Output old: '/a/b/c'  Output new: '//a/b/c'
Input: 'a//b'    Output old: 'a/b'     Output new: 'a//b'
2016-05-13 22:05:24 +02:00
LarsDW223
64cebf9c73 Preview image path are always direct. Fixes #24. 2016-05-13 19:33:15 +02:00
LarsDW223
4d798e23d2 Adjusted _path_is_absolute() to also recognize a path like '\\mypath' as absolute under windows. See #1. 2016-05-13 19:00:31 +02:00
LarsDW223
ca75fd34f2 Minor code improvement. 2016-05-11 22:11:11 +02:00
LarsDW223
738390afa9 Added option for generating ftp links. Fixes #18. 2016-05-11 22:03:46 +02:00
LarsDW223
530bbb1685 On ODT export call _odtAddImage() to insert image. Fixes #22. 2016-05-11 20:33:26 +02:00
LarsDW223
737905fb5e Fixed ODT export for style=table:
- Count table columns for table_open()
- Open and close table row before table heading
Fixes #21.
2016-05-11 20:29:06 +02:00
LarsDW223
7b9a2ebee7 Fixed deprecated constructor. 2016-05-09 18:56:20 +02:00
LarsDW223
ea05a3a5c6 Added JavaScript zoom function for preview images. Fixes #19. 2016-05-07 14:50:33 +02:00
LarsDW223
00ae752f49 Added new options 'showsize', 'showdate' and 'listsep':
- 'showsize' shows the filesize for lists and table mode
- 'showdate' shows the last modified date for lists and table mode
- 'listsep' specifies the separator between the link, size and date.
  Default is ", ".
'tableshowsize' and 'tableshowdate' are still supported for backwards compatibility.
Fixes #16.
2016-05-06 20:03:39 +02:00
LarsDW223
0654dfec92 Replaced all occurences of '&$renderer' with 'Doku_Renderer $renderer'.
Moved function 'render_preview_image()' to section 'Render functions'.
2016-05-05 21:18:20 +02:00
LarsDW223
116e03df92 Fixed code duplication for the link's URL generation. 2016-05-05 12:33:40 +02:00
LarsDW223
b4c60681b1 Removed obsolete getInfo() method. 2016-05-05 12:11:45 +02:00
LarsDW223
95f84f105c Fixed code duplication for preview image rendering. 2016-05-05 11:04:42 +02:00
LarsDW223
69f6c00d52 Removed currently unused class 'preview' from preview image tags. 2016-05-05 10:45:47 +02:00
LarsDW223
76b639344d Set alignment for 'preview' table column to 'center'. 2016-05-05 10:24:12 +02:00
LarsDW223
3c09f83788 Added new config options 'preview', 'previewsize' and 'link':
- 'preview' and 'previewsize' allow to enable a previewimage and set the size of it
- 'link' controls if a link is created with icon or not or if just plain text is used
2016-05-05 10:11:29 +02:00
LarsDW223
2572618a34 Added option 'randlinks' to create random links with a timestamp attached to it as a URL parameter.
This prevents the referenced resource from being cached.
The user will see the latest version of a file if he clicks on it, at least after refreshing the page. See #9.
2016-05-03 19:39:56 +02:00
LarsDW223
7441ea06c0 Added ODT support. 2016-04-30 17:45:19 +02:00
LarsDW223
c26020c439 Small refactoring. 2016-04-30 15:01:15 +02:00
LarsDW223
99bbd1f698 Check if method '$renderer->getLastlevel()' exists or if '$renderer->lastlevel' is accessible.
If not for both then always use level 1 to prevent an error causing an empty page e.g. on "hrun" and "detritus". See #11.
2016-04-30 11:56:27 +02:00
Andreas Gohr
88000db20d Adjust method signatures to match parent 2016-02-02 13:09:53 +01:00
Andreas Gohr
e09b6b93a1 fix handling of caching parameter 2014-05-26 14:29:16 +02:00
Andreas Gohr
cedaaa981a use explode instead of deprecated split 2014-05-26 14:28:35 +02:00
Gina Häußge
ff48d8f53a Moved media id conversion to utility function and called it at appropriate locations 2012-02-09 12:47:38 +01:00
Pavel Brych
31bcb667b3 Hope to solve ACL check problem 2012-02-09 12:05:22 +01:00
Andreas Gohr
ff0348f9eb Added cache option 2010-06-30 16:20:49 +02:00
Andreas Gohr
a269b44c6a added option to limit listings to certain file extensions 2010-06-30 16:20:31 +02:00
Andreas Gohr
30f6a886d8 allow direct=2 to treat pattern as relative to 1st path 2010-06-30 16:20:31 +02:00
Andreas Gohr
0809416694 Option for setting default parameters 2010-06-30 16:20:31 +02:00
Gina Haeussge
9544d867a4 Fixed argument count for table_open 2010-06-16 19:53:13 +02:00
Gina Haeussge
89486f7bc6 Only use titlefile if it is actually there and readable 2010-01-17 12:47:37 +01:00
Gina Haeussge
1bf1bc0512 Use $conf['mediadir'] as media dir instead of $conf['savedir'].'media' 2010-01-17 12:46:45 +01:00
Gina Haeussge
1365991082 Merge branch 'master' of git@devel.recluse.de:foosel/dokuwiki/filelist 2009-11-16 19:23:00 +01:00
Gina Haeussge
82b40784b7 Release preparations 2009-11-16 19:22:40 +01:00
Gina Haeussge
6b7c4df62c Added case insensitive sorting of filenames. 2009-11-04 21:51:14 +01:00
Gina Haeussge
ba1a5c70a4 Release preparations: Adjusted date 2009-11-02 23:31:20 +01:00