infoweb-internet-solutions / yii2-cms-partials
为 Yii2 的 CMS 部分模块
2.0.1
2016-02-23 10:54 UTC
Requires
- 2amigos/yii2-translateable-behavior: @stable
- infoweb-internet-solutions/yii2-cms: @stable
- kartik-v/yii2-grid: @stable
- kartik-v/yii2-widgets: @stable
- mihaildev/yii2-ckeditor: @stable
- yiisoft/yii2: @stable
This package is not auto-updated.
Last update: 2024-09-24 03:18:12 UTC
README
安装
安装此扩展的首选方法是使用 composer。
运行以下命令之一
php composer.phar require infoweb-internet-solutions/yii2-cms-partials "*"
或者在您的 composer.json
文件的 require 部分添加
"infoweb-internet-solutions/yii2-cms-partials": "*"
to
使用
扩展安装后,只需按以下方式修改您的后端配置
'modules' => [ ... 'partials' => [ 'class' => 'infoweb\partials\Module', ], ],
导入翻译并使用类别 'infoweb/partials'
yii i18n/import @infoweb/partials/messages
要使用模块,执行 yii migration
yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-cms-partials/migrations
配置
以下列出了所有可用的配置选项及其默认值。
allowContentDuplication (类型: boolean
, 默认: true
)
如果此选项设置为 true
,则会在所有可翻译属性上激活 duplicateable
jquery 插件。
enableUrl (类型: boolean
, 默认: false
)
如果此选项设置为 true
,则启用 URL 字段。