Title: File Groups
Author: mitcho (Michael Yoshitaka Erlewine)
Published: <strong>2011 年 2 月 20 日</strong>
Last modified: 2012 年 10 月 15 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/file-groups.svg)

# File Groups

 由 [mitcho (Michael Yoshitaka Erlewine)](https://profiles.wordpress.org/mitchoyoshitaka/)
開發

[下載](https://downloads.wordpress.org/plugin/file-groups.1.1.5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/file-groups/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/file-groups/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/file-groups/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/file-groups/#developers)

 [技術支援](https://wordpress.org/support/plugin/file-groups/)

## 外掛說明

WordPress’s built-in file-management is built primarily for handling “media”. But
sometimes there’s a need for curating collections of files within WordPress, not
necessarily as media which will be displayed, but simply as files.

This plugin adds an abstraction called “file groups” to WordPress. Each file group
can contain multiple files, which are presented elegantly to the user. All files
in a file group can be downloaded together as a zip archive as well.

In addition, file groups can be tagged and these tags are used to associate particular
file groups to your posts. Two widgets, “related file groups” and “upload related
file group”, are supplied to make it easier to integrate the display of related 
file groups with your posts.

The plugin currently uses the PHP [ZipArchive extension](http://php.net/manual/en/class.ziparchive.php)
to support the batch download functionality.

This plugin is a component of the [MIT Educational Collaboration Space](http://ecs.mit.edu)
project.

### Migration

File Groups has some tools which make it easy for you to migrate files which are
not in file groups (known as “orphans”) into file groups.

First things first, you will need to (temporarily) unhide the native Media Library
from your admin by adding the following to your `wp-config.php` file:

    ```
        define( 'FILE_GROUPS_HIDE_NATIVE_MEDIA', false );
    ```

In the Media Library, you will now see a drop down which will let you “show only
orphans”. Select any collection of files there which you would like to migrate into
a file group, and then select the “create new file group” action from the “Bulk 
actions” menu and click “apply”. A new file group will be created for the files 
you selected.

Alternatively, individual orphan files have an action called “create singleton group”
available to them if you hover over its row in the table.

## 螢幕擷圖

 * [[
 * A nice interface for creating file groups.
 * [[
 * A file group, as viewed by visitors.
 * [[
 * File groups have tags and these are used to “relate” file groups to posts. A “
   related file groups” widget and “upload related file group here” widget are included.
 * [[
 * Files in your WordPress installation not attached to file groups (“orphans”) 
   can be easily turned into their own file groups. See the “Migration” section 
   of the readme for details.

## 安裝方式

 1. Upload the `file-groups` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Optionally activate the “related file groups” and/or “upload related file group”
    widgets.

You should now see a new item in your WordPress admin menu called “File Groups”.
By default, File Groups will hide the native Media Library. You can keep the native
Media Library around by adding the following to your `wp-config.php` file:

    ```
        define( 'FILE_GROUPS_HIDE_NATIVE_MEDIA', false );
    ```

If your WordPress installation has some files uploaded from before File Groups is
installed, you will most likely want to migrate these files into their own file 
groups. See the “Migration” section under “Other Notes” for more information.

## 常見問題集

  Your question here!

Our answer here!

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈File Groups〉的開發相關工作。

參與者

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)
 *   [ bmellor ](https://profiles.wordpress.org/bmellor/)

[將〈File Groups〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/file-groups)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/file-groups/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/file-groups/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/file-groups/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/file-groups/)。

## 變更記錄

#### 1.1.5

 * related file groups widget (widgets.php) defaulted to showing only first five
   groups because numberposts was not set. numberposts set to -1 to show all related
   groups

#### 1.1.4

 * At some point in time between WP 3.1 and WP 3.3.1, WP changed the id of the #
   media-buttons div on the editing interface to #wp-content-media-buttons. file-
   groups.js has been updated to reflect this change.

#### 1.1.3

 * Immediate security fix for [documented SQL injection vulnerability](http://www.exploit-db.com/exploits/17677/).

#### 1.1.2

 * add capability to store a “file group description” as post meta along with the
   file group
 * add description column to edit.php?post_type=file_groups
 * enable category taxonomy for file groups post type
 * remove_menu_page made conditional so as not to break wp ver < 3.1.0

#### 1.1.1

 * Fixed [a bug](https://wordpress.org/support/topic/plugin-file-groups-uploadinsert-icons-missing-in-action)
   with the “create related file group” button.

#### 1.1

 * Added tools for migration of files into file groups. See “Migration” section 
   of the readme.
 * Fixed a bug where the “files in group” column was showing up in other list tables.

#### 1.0

 * Initial public release.

## 中繼資料

 *  版本 **1.1.5**
 *  最後更新 **14 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.3.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/file-groups/)
 * 標籤:
 * [attachment](https://tw.wordpress.org/plugins/tags/attachment/)[file](https://tw.wordpress.org/plugins/tags/file/)
   [file groups](https://tw.wordpress.org/plugins/tags/file-groups/)[files](https://tw.wordpress.org/plugins/tags/files/)
 *  [進階檢視](https://tw.wordpress.org/plugins/file-groups/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/file-groups/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/file-groups/reviews/)

## 參與者

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)
 *   [ bmellor ](https://profiles.wordpress.org/bmellor/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/file-groups/)