boboldehampsink/zipassets
最新稳定版本:1.5.1
Composer 安装命令:
composer require boboldehampsink/zipassets
包简介
Zip Assets Plugin for Craft CMS
README 文档
README
Plugin that downloads a zipfile with a selection of assets.
Important: The plugin's folder should be named "zipassets"
Deprecated
With the release of Craft 3 on 4-4-2018, this plugin has been deprecated. You can still use this with Craft 2 but you are encouraged to use (and develop) a Craft 3 version. At this moment, I have no plans to do so.
Example
<form method="post" target="_blank"> {{ getCsrfInput() }} <input type="hidden" name="action" value="zipAssets/download"> <input type="hidden" name="filename" value="your-zipfile"> <input type="checkbox" name="files[]" value="123"><!-- asset id --> <input type="checkbox" name="files[]" value="234"><!-- asset id --> <input type="submit" value="Download!"> </form>
Via url: /actions/zipAssets/download?filename=your-zipfile&files[]=123&files[]=234
Roadmap
- Support for Asset Element Actions
Development
Run this from your Craft installation to test your changes to this plugin before submitting a Pull Request
phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/zipassets/phpunit.xml.dist --coverage-text craft/plugins/zipassets/tests
Changelog
1.5.1
- All service code is now fully covered by unit tests
1.5.0
- Use original filenames in zip
1.4.2
- Remove temporary zip after download
1.4.1
- Remove temporary zip assets
1.4.0
- Added support for all asset source types, so cloud files are now also supported
- Added a MIT license
1.3.0
- Added support for assets in subfolders
1.2.1
- Fixed a bug where the asset path was parsed with the wrong variables
1.2.0
- Now supports source paths with objects (i.e. "{path}/assets")
1.1.0
- Now also callable as a service
- Now uses Craft's interal zip system
- Added unit tests
1.0.1
- You can now also download assets via GET
1.0
- Initial release
统计信息
- 总下载量: 22.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-18