infoweb-internet-solutions / yii2-image-gallery
Yii2 image gallery
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 3
Open Issues: 6
Type:yii2-extension
Requires
- bower-asset/blueimp-gallery: @stable
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-01 17:35:45 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