m1.DownloadList
Dieses Plugin zeigt einfach Ordner und Dateien aus einem Verzeichnis an. Es kann mittels Shortcode in jeden Beitrag eingefügt werden.
Bewertungen
Zuletzt aktualisiert
July 31, 2023
Version
0.18
Aktive Installationen
500
Dieses Plugin zeigt einfach Ordner und Dateien aus einem Verzeichnis an. Es kann mittels Shortcode in jeden Beitrag eingefügt werden mit Parameter für Pfad und Fenster Ziel. Uploads müssen mit einem separaten Programm erfolgen. Es gibt keine Verwaltungsoptionen.
- compatible up to PHP7.2
- need PHP extension mb_string
Verfügbare optionale Parameter
- path = directory path, starting by web root (default: wp-content/uploads/)
- target = Browser Fenstername
- sort = by name ASC/DESC (default: ASC)
- sort-order = filename/filetype/ftime/filetime/foldertime (default: filename)
- label = custom top level label
- nosize = displays no file size
- hidedirs = displays no folders, only files
- filetype = (comma separated list) filter files by their extension
- hidefiletype = (comma separated list) hide files with filetype
- hidefilename = (comma separated list) hide named files and folders
- noext = hide the file extensions
- nobreadcrumb = hide breadcrumb / title
- ftime = display file and folder modification date and time (standard = „1“ or use date formatting like „Y-m-d H:i“), see PHP date formatting
- filetime = same as ftime, just for files
- foldertime = same as ftime, just for folders
(most of it can be combined together)
Shortcode Beispiele
- zeigt den Inhalt von
wp-content/uploads/
:[m1dll]
- zeigt den Inhalt von
dein/ordername/hier/
:[m1dll path="dein/ordername/hier/"]
- zeigt den Inhalt von
dein/ordername/hier/
und sortiert absteigend:[m1dll path="dein/ordername/hier/" sort="DESC"]
- zeigt den Inhalt von
dein/ordername/hier/
, öffnet Dateien in einem neuen Fenster:[m1dll path="dein/ordername/hier/" target="_blank"]
- displays content of
your/foldername/here/
, change label ‚downloads‘ to ‚our downloads‘:[m1dll path="your/foldername/here/" label="our downloads"]
- displays content of
wp-content/uploads/
, displays no file size:[m1dll nosize="1"]
- displays content of
wp-content/uploads/
, displays no folders:[m1dll hidedirs="1"]
- displays content of
wp-content/uploads/
, displays only pdf- and docx-documents:[m1dll filetype="pdf,docx"]
- displays content of
wp-content/uploads/
, do not display pdf- and docx-documents:[m1dll hidefiletype="pdf,docx"]
- displays content of
wp-content/uploads/
, do not display file secret.txt and secret.docx:[m1dll hidefilename="secret.txt,secret.docx"]
- displays content of
wp-content/uploads/
, displays no file extensions:[m1dll noext="1"]
- displays content of
wp-content/uploads/
, displays no breadcrumb:[m1dll nobreadcrumb="1"]
- displays content of
wp-content/uploads/
, with file and folder time with own format[m1dll ftime="Y-m-d, H:i"]
- displays content of
wp-content/uploads/
, with file and folder date and time (standard from WordPress)[m1dll ftime="1"]
- displays content of
wp-content/uploads/
, with file and folder self formated date[m1dll ftime="Y-m-d"]
- displays content of
wp-content/uploads/
, with file date and time (standard from WordPress)[m1dll filetime="1"]
- displays content of
wp-content/uploads/
, with folder date and time (standard from WordPress)[m1dll foldertime="1"]
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.