[WordPress] 外掛分享: m1.DownloadList

首頁外掛目錄 › m1.DownloadList
WordPress 外掛 m1.DownloadList 的封面圖片
400+
安裝啟用
★★★★
4.7/5 分(21 則評價)
28 天前
最後更新
問題解決
WordPress 4.0+ v0.25 上架:2015-09-10

內容簡介

m1.DownloadList 外掛能夠輕鬆顯示指定目錄中的資料夾和檔案,使用者可以透過短碼在任何文章中嵌入,並可自訂顯示參數,方便管理和展示檔案。

【主要功能】
• 顯示指定目錄的檔案和資料夾
• 支援多種短碼參數自訂顯示
• 可選擇顯示或隱藏檔案大小和資料夾

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.25) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「m1.DownloadList」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin easily displays the folders and files from a selected directory. It can be placed by shortcode with the parameters path and target in any post. Uploads must be done by a separate ftp program. No managing options.

compatible up to PHP 8.5
need PHP extension mb_string

available optional shortcode parameters

path = directory path, starting by web root (default: wp-content/uploads/)
target = browser window name
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 examples

displays content of wp-content/uploads/: [m1dll]
displays content of your/foldername/here/: [m1dll path="your/foldername/here/"]
displays content of your/foldername/here/ and sort descending: [m1dll path="your/foldername/here/" sort="DESC"]
displays content of your/foldername/here/, open files in a new window: [m1dll path="your/foldername/here/" 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"]

文章
Filter
Mastodon