maerduq/usm-albums
Composer 安装命令:
composer require maerduq/usm-albums
包简介
A plugin for USM to manage and display photo's using albums.
README 文档
README
A plugin for USM to manage and display photo's using albums.
Prerequisites
- Composer using https://asset-packagist.org as repository.
- A project using USM.
Getting started
- Download in your project by executing
$ composer require maerduq/usm-albums. - Add the plugin as a module to
config/web.php.'modules' => [ ... 'albums' => [ 'class' => 'maerduq\usmAlbums\AlbumsModule', (here some optional plugin configuration, see below for options) ], ... ], ... - Add the albums module as USM plugin in
config/web.php.'modules' => [ 'usm' => [ ... 'plugins' => [ 'albums', ... ], ], ... ], ... - Add the migration path to
migrate-usminconfig/console.php.... 'controllerMap' => [ 'migrate-usm' => [ 'migrationPath' => ['@usm/migrations', '@vendor/maerduq/usm-albums/src/migrations'], ... ] ], ... - Run the migrations with
$ php yii migrate-usm. - Create the folder
@app/files/albumsand make it writable, or configure a different folder to store your image files. - Increase
post_max_sizeandupload_max_filesizein your PHP configuration if needed.
Hooks
- Controller to add to your menu:
/albums/default/index. - Textblocks: photos/no-photos-message.
Plugin configuration
imageDirectory- path to where the image files of the albums should be stored.overviewViewFile- view file for the overview view.albumViewFile- view file for the album view.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-02