2017 © Pedro Peláez
 

yii2-extension yii2-gallery

Yii2 gallery module

image

zacksleo/yii2-gallery

Yii2 gallery module

  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Yii2 gallery

Latest Stable Version Total Downloads License, (*1)

original yii2-gallery-module, (*2)

Features:

  • Upload image
  • Drag image and change position
  • Make gallery template
  • Use inline widget

gallery, (*3)

Installation

Composer

The preferred way to install this extension is through Composer., (*4)

Either run php composer.phar require sadovojav/yii2-gallery-module "dev-master", (*5)

or add "sadovojav/yii2-gallery-module": "dev-master" to the require section of your composer.json, (*6)

Migration

yii migrate --migrationPath=@vendor/sadovojav/yii2-gallery-module/migrations, (*7)

Config

  1. Attach the module in your config file:
'modules' => [
    'gallery' => [
        'class' => 'sadovojav\gallery\Module',
    ],
],
  • string basePath = @webroot/galleries - Base path
  • integer queryCacheDuration = 86400 - Query cache duration
  • bool uniqueName = false - Generate unique name
  1. If you want use custom template, you can set path map
'view' => [
    'theme' => [
        'pathMap' => [
            '@sadovojav/gallery/widgets/views' => '@app/web/views/gallery'
        ],
        'baseUrl'   => '@web/web'
    ],
],

Administration

Galleries manager - /gallery/gallery/index, (*8)

Using

1. Widget

<?= \sadovojav\gallery\widgets\Gallery::widget([
    'galleryId' => $model->galleryId
]); ?>
  • integer galleryId required - Gallery Id
  • bool caption = false - Show caption in default template
  • string template = null - Your custom widget template

2. Inline Widget

See here -> https://github.com/sadovojav/yii2-inline-widgets-behavior, (*9)

The Versions

12/06 2017

dev-master

9999999-dev

Yii2 gallery module

  Sources   Download

proprietary

The Requires

 

yii2 module gallery

12/06 2017

1.1.0

1.1.0.0

Yii2 gallery module

  Sources   Download

proprietary

The Requires

 

yii2 module gallery

20/03 2017

1.0.0

1.0.0.0

Yii2 gallery module

  Sources   Download

proprietary

The Requires

 

yii2 module gallery

24/02 2017

v0.1.0

0.1.0.0

Yii2 gallery module

  Sources   Download

The Requires

 

yii2 module gallery

08/02 2017

v0.0.1

0.0.1.0

Yii2 gallery module

  Sources   Download

The Requires

 

yii2 module gallery