Simple FTP Directory Lister

Description

Plugin reads all files in folder and subfoldres and displays it on the website as clickable tree.

Plugin register path to folder within wordpress upload folder, therefore add only relative path to the folder you want to list.
When the path to folder is properly set, just copy the shortcode and past it anywhere to the page where you want to show the listing.

Please keep in mind that this plugin is not suitable for listing thousands of items since it loads all the information at once.

There are two layout available: horizontal (vertical on mobile) and vertical.

You can define path and layout within the shortcode to use the plugin in serveral places and list different folders: [simple-ftp-directory-lister layout=”horizontal” path=”/path-to-folder”]. More information in settings of the plugin.

Screenshots

Installation

  1. Upload simple-ftp-directory-lister folderto the/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to settings -> Simple FTP Directory Lister Settings
  4. Set path to your folder within the wordpress upload directory and hit save
  5. Choose layout
  6. Copy the shortcode
  7. Paste the shortcode to the page where you want to display listing of subfolders and files of the folder you defined in step 4.
  8. Save the page with the shortcode and thats it. Listing will now display on that page.

FAQ

Can I choose any folder at FTP?

No. For security reasons you may only choose folders within wordpress upload directory.

Can I list multiple folders?

Yes, you can define path within the shortcode to use the plugin in serveral places and listing different folders. See settings page of SFDL in your WordPress.

Can I define horizontal/vertical style within shortcode?

Yes, together with path defined in shortcode you can also define its style. For more information see settings page of SFDL in your WordPress.

Can I define my own icons / overwrite default icons / add missing icons for file extensions?

Yes, icons are now loaded as background in css, therefore its easy to overwrite them in your theme style file.
Also every file div wrapper has a class named as extension of the file. You can then target this class to change/add icons for the extension (example: .download-icon.pfd).

Can disable/enable loading animation?

Yes, you can disable/enable the animation in settings of the plugin. You can also disable it individually within shortcode by using loading_animation=”disable” or loading_animation=”enable”

Can set different text for empty folders based on page language?

Yes, you can define the text in CSS. You have to get the language from the page somewhere. For example if your theme writes language class to body tag the css will be: body.en_GB .sdfl-no-files-available-wrapper::after {content: “No files available at the moment.”;}

Can I completely change the styles your plugin is using?

Yes, you can. To use your styles you need to create a folder called simple-ftp-directory-lister within your theme directory with a subfolder called css. From now on all the styles of the plugin will be loaded from this folder. Be aware that you should be using child theme in order to keep any theme changes after you update the theme. There are 5 different css files that controls styles. You need to copy these files from the plugin folder to the css folder you just created. Now change anything you want in these files, the plugin will be loading these and ignore its own css files. Example where you need to create the folder: /wp-content/themes/themeyouareusing/simple-ftp-directory-lister/css/”

Reviews

June 24, 2021
It works fine. I had to present results not as previous by the plugin and it was not very difficult. As I had problem with pagination because the website is only one page to present directory on the homepage, I used posts, one for 20 directories. With the WP pagination and a little adding of PHP. And the results is absolutly as expected. Thanks for your work !
September 7, 2020
Unable to set any path, it will always say "error, set path does not exist". As explained in the support thread, i am not sure if the path must ben in wp-content/uploads/yourfolder o anywhere else (/your folder or /uploads/yourfolders for example). Every path i tried (and they do exist) will throw the same error: set path does not exist I hope this can be solved Regards
Read all 2 reviews

Contributors & Developers

“Simple FTP Directory Lister” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.4.4

Added possibility to overtake styles.

1.4.3

Updated example of upload directory.

1.4.2

  • Added icon and text if main folder is empty. (Usable mostly when calling script from ajax calls)

1.4.1

  • Added loading animation.

1.4

  • Adding advanced options – you can now set mobile layout breakpoint and add custom classes to main wrapper.
  • Improved styles and calculations.

1.3

  • Completely reworked design
  • Ability to choose between vertical or horizontal style in option menu
  • Ability to choose between vertical or horizontal style in shortcode (overrides menu option for the shortcode listing)
  • Reworked icon handling – you can now define your own icons in CSS styles of your theme
  • Improved PHP listing, completely reworked jQuery functions. Width of elements (horizontal layout) is now dynamically calculated, height of listing is now dynamically calculated.

1.2

  • Small change in css and ensuring support for calling main function with ajax. You can now create own interactive listings with ajax.

1.1

  • Adding support for defining path directly in shortcode, thus allowing multiple different listings across website

1.0

  • Release