infoweb-internet-solutions/yii2-image-gallery

Yii2 image gallery

1.0.8 2015-02-19 12:45 UTC

This package is not auto-updated.

Last update: 2022-06-25 04:19:54 UTC


README

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