承接 infoweb-internet-solutions/yii2-cms-sliders 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

infoweb-internet-solutions/yii2-cms-sliders

Composer 安装命令:

composer require infoweb-internet-solutions/yii2-cms-sliders

包简介

Slider module for Yii2

README 文档

README

Docs

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Once the extension is installed, simply modify your common configuration as follows:

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

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

Import the translations

yii i18n/import @infoweb/sliders/messages

Add to backend/config/main.php

'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.

defaultWith (type: integer, default: 800)

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

defaultHeight (type: integer, default: 200)

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

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.

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.

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.

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.

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.

统计信息

  • 总下载量: 738
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固