Skip to content

Simple gallery with drag-n-drop upload. You can use it for custom entities with images.

License

Notifications You must be signed in to change notification settings

Jakeroid/yii2-liqugallery-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 LiquGallery widget

The project is abandoned! You can use it at your own risk.

Simple gallery widget with AJAX upload and main image option. Could be useful if you want to manage images on the back office side.

If you need some assistance or similar software, I could help. Contact me on LinkedIn or Upwork.

How to install?

Just run the following command.

composer require jakeroid/yii2-liqugallery-widget

How to use?

It is JavaScript wrapped in yii2 widget. All you need is to create a handler in the controller and specify the path to it. Here is some example.

    [
        'label' => 'Editor gallery',
        'content' => jakeroid\liqugallerywidget\LiquGalleryWidget::widget([
            'handler_url' => Url::to(['liqugallery-back-office/handle']),
            'custom_params' => [
                LiquGalleryParams::GALLERY_GROUP_ID => ($model->source->gallery) ? $model->source->gallery->id : false,
                LiquGalleryParams::IMAGE_TYPE => \app\models\DbImage::TYPE_EDITOR_IMAGE,
            ]
        ]),
    ],

About

Simple gallery with drag-n-drop upload. You can use it for custom entities with images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published