infoweb-internet-solutions/yii2-image-gallery Yii2 image gallery

imagegalleryinfowebyii2-image-gallery

Image gallery extension for Yii 2

This extension provides a way to manage image galleries for your website.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist infoweb-internet-solutions/yii2-image-gallery "*"

or add

"infoweb-internet-solutions/yii2-image-gallery": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed run this migration

yii migrate/up --migrationPath=@infoweb/gallery/migrations

And modify backend/config/main.php as follows:

return [
    ...
    'modules' => [
        'gallery' => [
            'class' => 'infoweb\gallery\Module',
        ],
    ],
    ...
];

Import the translations and use category infoweb/gallery:

yii i18n/import @infoweb/gallery/messages

Configuration

All available configuration options are listed below with their default values.


allowContentDuplication (type: boolean, default: true)

If this option is set to true, the duplicateable jquery plugin is activated on all translateable attributes.


enableDescription (type: boolean, default: true)

If this option is set to true, it is possible to add a description.


enableDate (type: boolean, default: true)

If this option is set to true, it is possible to add a date.


defaultThumbnailWidth (type: integer, default: 250)

This sets the default width for thumbnails


defaultThumbnailHeight (type: integer, default: 150)

This sets the default height for thumbnails


Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.8 is the latest of 9 releases



MIT license
Stats
1 github stars & 3 github forks
0 downloads in the last day
0 downloads in the last 30 days
167 total downloads