Library Viewer you can display the containing files and the containing folders of a “specific folder” of your (FTP) server to your users in the front-end.
The significant difference from other similar plugins is that:
1. You can allow users to view that the files exist, but cannot open them if they are not logged in (or if they are not administrators, or authors etc…).
2. You can allow users to view files in a custom viewer or redirect them through a RESTful web service of your choice (examples exists below).
This plugin adds the [library-viewer] shortcode in your WordPress site!
So the only thing that you must do to display the folders and files in the front-end is to add this shortcode in a post, page, widget etc.
PARAMETERS DOCUMENTATION
PARAMETERS DOCUMENTATION AND USE CASES
PARAMETERS OF LIBRARY VIEWER
- have_file_access (have_file_access parameter determines which user have access to view the files.)
- my_doc_viewer (my_doc_viewer parameter determines in which viewer the file will be opened.)
- login_page (login_page parameter defines the login page that user will be redirected -if need it-, to log in.)
- path (path parameter allow us to choose what folder we want to display in the Library in the front-end. When we say, folder, we mean folder’s contents i.e. containing folders and files of this folder.)
- waiting_seconds (waiting_seconds parameter sets the seconds of user is waiting the redirection to login and see the file (0: for instant redirect).)
- breadcrumb (breadcrumb parameter determines if breadcrumb will be displayed in the Library in front-end or not.)
- hidden_folders (hidden_folders determines which folders will not be displayed and will not be accessible by Library in the front-end.)
- shown_folders (shown_folders parameter determines which folders will be displayed and will be accessible by Library in the front-end.)
- hidden_files (hidden_files determines which files will not be displayed and will not be accessible by Library in the front-end.)
- shown_files (shown_files parameter determines which files will be displayed and will be accessible by Library in the front-end.)
- url_suffix (url_suffix allow you to add a suffix in the URL, so you can use the [library-viewer] shortcode more than one time in the same page.)
- delete_folder (delete_folder parameter determines which user can delete a folder.)
- delete_file (delete_file parameter determines which user can delete a file.)
- rename_folder (rename_folder parameter determines which user can rename a folder.)
- rename_file (rename_folder parameter determines which user can rename a file.)
- create_folder (create_folder parameter determines which user can create a folder.)
- upload_file (upload_file parameter determines which user can upload a file.)
- unzip_file (unzip_file parameter determines which user can unzip a zip file.)
- download_folder (download_folder parameter determines which user can download a folder as a zip file.)
- download_file (download_file parameter determines which user can download a file.)