maerduq / usm-albums
A plugin for USM to manage and display photo's using albums.
    1.0.2
    2020-09-26 11:47 UTC
Requires
- bower-asset/blueimp-file-upload: ^9.28
 - bower-asset/lightbox2: ^2.10
 - imagine/imagine: ^1.2
 - kartik-v/yii2-widget-datetimepicker: ^1.4
 - maerduq/usm: >=1.4.0
 - yiisoft/yii2: >=2.0.13
 
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.