[WordPress] 外掛分享: Media Organiser

首頁外掛目錄 › Media Organiser
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
尚無評分
2580 天前
最後更新
問題解決
WordPress 4.3.0+ v0.1.6 上架:2017-02-02

內容簡介

此外掛可讓附件在伺服器上組織成資料夾。

附件會被實際移動到資料夾中,所有頁面和文章中與它們有關的參考也會相應地更新。

媒體管理員最初是從Atsushi Ueda的版本1.4.2分支出來的,自那以後已經大部分重寫。它還沒有媒體文件管理器的“媒體選擇器”功能-實際上,選擇媒體的“新”界面文檔非常差,以至於我無法弄清如何使用它。有任何想法吗?

插件設置頁面還有一個工具,可將文件系統中缺少文件的附件整理一下。

需求

MySQL數據庫引擎能進行事務處理,否則在重命名文件時出現錯誤時,情況會變得混亂。關於更改引擎的信息可以在easyengine.io上找到。受影響的表是wp_posts和wp_postmeta。

致謝

圖標改編自github.com/iconic/open-iconic/。

已知問題

可能無法在運行Windows伺服器的站點上運行-尚未檢查目錄分隔符號的使用。
使用數據庫事務,因此需要能夠執行提交/回滾等操作的數據庫引擎,例如InnoDB。
盡最大努力使更改具有原子性,但如果在重命名文件的過程中發生任何變化,事情可能會出錯。
沒有國際化(尚未)。
在進行更改之前,不會檢查文章是否已經被鎖定以進行編輯,因此最好在確定沒有其他人正在使用這些附件的任何帖子或頁面時移動和重命名附件。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Media Organiser」→ 直接安裝(推薦)

原文外掛簡介

This plugin allows attachments to be organised into folders on the server.
Attachments are physically moved into folders, and all references to them in pages and posts are updated accordingly.
Media Organiser was originally forked from version 1.4.2 of Media File Manager by Atsushi Ueda, and has been largely rewritten since then. It does not yet have the ‘media selector’ function of Media File Manager — in fact, the ‘new’ interface to choosing media is so poorly documented that I can’t work out how to use it. Any ideas?
There is also a tool on the plugin’s Settings page which allows attachments
whose files are missing from the file system to be tidied up.
Requirements

MySQL database engine that does transactions, otherwise things will get out of whack of something goes wrong when renaming files. Information on changing engines can be found on easyengine.io. The tables that are affected are wp_posts and wp_postmeta.

Acknowledgements
Icons adapted from github.com/iconic/open-iconic/.
Known issues

May not work on sites hosted on a Windows server — haven’t checked the use of directory separators yet.
Does database transactions — so requires a database engine that can do commit/rollback, such as InnoDB.
Does its best to make changes atomic, but things could go wrong if something changes in the middle of renaming files.
No internationalization (yet).
Doesn’t check if posts are already locked for editing before making changes to them, so it’s best to move and rename attachments when you’re sure that no-one else is working on any posts or pages that use those attachments.

延伸相關外掛

文章
Filter
Mastodon