2017 © Pedro Peláez
 

yii2-extension yii2-cms-sliders

Slider module for Yii2

image

infoweb-internet-solutions/yii2-cms-sliders

Slider module for Yii2

  • Tuesday, June 14, 2016
  • by infoweb-internet-solutions
  • Repository
  • 4 Watchers
  • 0 Stars
  • 694 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

Sliders module for Yii 2

Docs

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require --prefer-dist infoweb-internet-solutions/yii2-cms-sliders "*"

or add, (*3)

"infoweb-internet-solutions/yii2-cms-sliders": "*"

to the require section of your composer.json file., (*4)

Once the extension is installed, simply modify your common configuration as follows:, (*5)

return [
    ...
    'modules' => [
        ...
        'yii2images' => [
            'class' => 'rico\yii2images\Module',
            // @frontend/web/
            'imagesStorePath' => '@uploadsBaseUrl/img/store', //path to origin images
            'imagesCachePath' => '@uploadsBaseUrl/img/cache', //path to resized copies
            'graphicsLibrary' => 'GD', //but really its better to use 'Imagick'
            'placeHolderPath' => '@infoweb/sliders/assets/img/placeHolder.png',
        ],
    ],
];

Run this migration, (*6)

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

Import the translations, (*7)

yii i18n/import @infoweb/sliders/messages

Add to backend/config/main.php, (*8)

'modules' => [
    ...
    'sliders' => [
        'class' => 'infoweb\sliders\Module',
    ],
    ...
    'cms' => [
        ...
        'sideBarItems'  => [
            'modules'   => [
                ...
                [
                    'label'     => 'Sliders',
                    'i18nGroup' => 'infoweb/sliders',
                    'url'       => '/sliders/slider/index',
                    'authItem'  => 'showSlidersModule',
                    'activeUrl' => 'sliders',
                ],
            ],
        ],
    ],
    ...
],

Configuration

All available configuration options are listed below with their default values., (*9)


defaultWith (type: integer, default: 800)

The default with (in pixels) of a new slider., (*10)


defaultHeight (type: integer, default: 200)

The default height (in pixels) of a new slider., (*11)


enableImageTitle (type: boolean, default: false)

If this option is set to true, it is possible to set a title for each image of a slider., (*12)


enableImageSubTitle (type: boolean, default: false)

If this option is set to true, it is possible to set a subtitle for each image of a slider., (*13)


enableImageDescription (type: boolean, default: false)

If this option is set to true, it is possible to set a description for each image of a slider., (*14)


enableImageUrl (type: boolean, default: false)

If this option is set to true, it is possible to set an url for each image of a slider., (*15)


enableTextPosition (type: boolean, default: false)

If this option is set to true, it is possible to set a position for each image text in the a slider., (*16)


The Versions

14/06 2016

dev-master

9999999-dev

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

25/02 2016

2.0.1

2.0.1.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

25/02 2016

dev-feature/translateable

dev-feature/translateable

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

25/02 2016

2.0.0

2.0.0.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

25/01 2016

1.0.4

1.0.4.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

18/11 2015

1.0.3

1.0.3.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

10/09 2015

1.0.2

1.0.2.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

05/06 2015

1.0.1

1.0.1.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders

07/01 2015

1.0.0

1.0.0.0

Slider module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 infoweb sliders yii2-cms-sliders