The Joomla! Extensions Directory ™


JX List Files Module

Jx List Files v1.3 has been released. Main new features are grouping files by sub-directory and opening files in new window.

A native Joomla 1.5 module to list the files of a directory on your web server.

Main features:
* List files from a directory on your web server.
* Can add links to the files.
* Translatable, delivered with English and Swedish
* Icons to display the type of file.
* View template to change the html.
* CSS file to manage the look.
* Hide specific files from the list.
* Sort by filename, file size or date either ascending or descending.
* Group files by sub-directory.
* Files can be opened in new window.

Report

2011-07-10
Reviews: 8
Excellent. Just what we need.
But which file do you change the date format?
24-12-2011 instead of 2011-12-24, for example.
Thank you.
Owner's reply

No need to edit any file to change from the default date format for the current Joomla language. The date format is configurable from the module parameters.

Go to Joomla Administrator -> Extensions -> JX List Files and enter "%d-%m-%Y %T" in the "Date Format" box to the right.

More information about the date format options can be found here:
http://www.php.net/manual/en/function.strftime.php

2011-03-09
Reviews: 7
It works perfectly. It's also easy to customize for my own use. Nice advanced features such as icons for file types. I couldn't ask more, so for me is absolutely excellent.
2010-04-21
Reviews: 3
Worked first off. Is somewhat of a curve if you new to joomla or programming. A bit annoying that file sizes are in bytes by default (not too hard to fix with a little filesize function) would have saved me some dev time though if it had been there from the start.

Other than that, it does what it says. WELL.
Owner's reply

Thank you for informing about this inadequacy.

The latest version now displays file sizes in a more human readable format.

2010-02-10
Reviews: 5
This is very nice, props for your work and thanks a lot for sharing it!

An option I would have wanted:
Output files grouped by their parent folder when recursive=yes. No need to link the folders, just visually split the list by subfolder instead of ignoring them. This would let the admin maintain a directory structure which is replicated automatically. I only needed one level of subdirs, but nested ul-lists would work for unlimited levels so I'm putting the request out there. If you want to try to grant my wish, I have a recursive php function for converting an array into nested ul's with css styling, let me know.

Technical rant:
I was a bit annoyed that I couldn't exclude "index.html" (which Joomla puts in all created folders) when using recursive listing, but I quickly found out this is a shortcoming of the JFolder::files method (When writing a recursive function, why not call the same parameters on the recursive calls..?). I solved this for myself, so not asking for a change, I just wanted to rant ;)
I just added in helper.php:99
$file =& $filelist[$i];
$filename = JFile::getName($file);
if(!in_array($filename, $excludefiles)){..file loop..}
Owner's reply

Thank you for the thorough feature request.

Both of these have been added to the latest version of the extension.

2009-12-31
Reviews: 1
This does what it says it does and it is very useful. But it sure would be handy to have some more options. For example, the option to open a new window (target=blank) when linking to a file or even open them with the YOOgallery or similar plugin where it grays the background and animates the opening of an image preview. I don't know how that would work for files that aren't graphics (ie: PDF, ZIP, DOC, etc.) but it would be have a slick preview of the images. Or maybe even the option to have it SAVE the file when the user clicks on the link, instead of OPENING it.

A before text field where I could put some intro text before the list of files would be nice too.

Also, I may be the only one who wants this feature, but it would be nice to have a plugin as well so I could publish the file list wherever I wanted instead of just in a module position.

I'd be willing to pay a little for those additional features (in addition to being able to remove the version and link to author at the bottom). But even with only the very basic features, this is a useful module. Thank you for providing it.
Owner's reply

All html is available in a template file, which is located here:

modules/mod_jxlistfiles/tmpl/default.php

This can also be overridden via your Joomla template.


You can change the html to add target to the anchor tag, as well as removing the link/version info.

Opening images via some preview script should also be possible to add in the html.

Unfortunately, to save files I think you would need a script to deliver the file.


To use the module as a plugin, I think there are wrapper plugins available to run any module in a page.

2009-02-20
Reviews: 4
Simple module that does exactly what I needed. It's perfect for having a dynamic way of displaying PDFs in a module.

Thanks!
2009-02-18
Reviews: 7
This is the kind of feature you want on a website when you simply want to list certain directories. A wanted feature would be the possibility to browse through all the subdirectories not only parse their content mixed with the files in the base directory.

This module also takes all the privileges from the module you publish into. With a little imagination this is a powerful module! You can customize the display as you want to because the styles are based on external css file.
2009-01-15
Reviews: 9
This module doesn't do much, but what it does do is VERY nice. It displays a listing of files in a directory for download. Perfect if you have a bunch of PDFs in a folder, for example. I would like to see it list folders as well as files, which would make it very easy to categorize files on the server, then show them on your site. Add the folder function and it's perfect!!