2016-04-14, 17:27:27
(This post was last modified: 2016-04-14, 17:55:00 by DesruX.
Edit Reason: Added further suggestions for improvements
)
(2016-04-14, 05:33:33)lokothodida Wrote: I've briefly tried to work on an unofficial v0.4 of RobA's plugin to address people's issues.
- Makes the directory path default to /data/uploads/ (leave the fields in the admin panel empty to set it to /data/uploads/)
- Allows multiple instances of SimpleDir to run on a page (parameters added to (% simpledir %))
- Provides public PHP functions for using SimpleDir outside of pages (get_simpledir_display, return_simpledir_results)
- Fix HTML for the admin panel
- Github Page
- ZIP File for current beta
Awsome!, it works like a charm, thanks a lot for the effort.
A few further suggestions for improvements:
a) Option to decide which columns to include e.g. Date and Size - so you could have a listing not showing those columns and having more space for the filename.
b) Options to sort the files, e.g. on name a-z or z-a. I would like the newest files to be shown in the top.
c) Option to only show top 5 files, then click to expand to see all.
Any ideas on how it could be integrated with a way to avoid exposing the actual files without authentication. Right now the page that serves simpledir requires users to be loggedin, but if you know the exact url of the file it is possible to download it directly.
Best regards