Assets plugin for redmine
Provides a central location to view all your project's assets.
This will enable the
Assets tab in your project. The assets tab groups assets by your different asset types.
The asset types currently supported are
Versions (from the Files module), and
Only the types that have uploaded files in the current project will be displayed. Drilling down into an asset type
will show an alphabetical list of assets, grouped by category if applicable.
- Rails 3
- Follow the Redmine plugin installation steps at: http://www.redmine.org/wiki/redmine/Plugins
- Cd to your redmine
- Git-clone the plugin from this repo into a folder in there:
git clone git://github.com/bshaffer/redmine-assets-plugin.git redmine_assets_plugin(You must name your directory with underscores as shown here, or the plugin will throw a fatal error)
- Run the plugin migrations
- Restart your Redmine web servers (e.g. mongrel, thin, mod_rails)
- Login to your Redmine install as an Administrator
- Setup the permissions for the assets module for your roles
- Enable the module on a per-project basis as needed.
NOTE: the plugin directory has to be "redmine_assets_plugin"
To activate in your project:
- Navigate to your project's "Settings" page
- Under the "Modules" tab, check the box next to "Assets list" and save
You can configure additional asset types via the
config/mappings.yml file. Mappings to the
content type's project_ids and categories are found here. Contact me or submit a pull request for additional asset types.
- Leaving out the "category" key in
mappings.ymlwill disable categorization.
- Leaving out the "project_id" key will default to project_id.
As a bare minimum, the mappings.yml file requires the name of the asset type, followed by an empty hash:
This will display the assets for class NewAssetType with a project_id field and no categories.