bariew/yii2-page-cms-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bariew/yii2-page-cms-module

Composer 安装命令:

composer require bariew/yii2-page-cms-module

包简介

Yii2 module for static pages creating.

README 文档

README

Description

Module for site "static" pages management. Has admin area for creating pages with WYSIWYG HTML editor and SEO fields. Has subpages feature (they will be available via subpaths like page1/page2/page3). Has JS tree for subpages tree management. Has page menu widget with a multiple dropdown feature.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bariew/yii2-page-cms-module "*"

or add

"bariew/yii2-page-cms-module": "*"

to the require section of your composer.json file.

Usage

  • Include 'page' module in the modules config section:
    'modules' => [
    ...
        'page'   => [
            'class' => 'bariew\pageModule\Module'
        ],
    ],
  • Add a new routing rule to your url manager in the components config section:
    'components' => [
    ...
        'urlManager' => [
            'rules' => [
                [
                    'class' => 'bariew\pageModule\components\UrlRule',
                    'pattern' => '<url:\\S*>',
                    'route' => 'page/default/view'
                ],
                '<controller>/<action>' => '<controller>/<action>',
                '<module>/<controller>/<action>' => '<module>/<controller>/<action>',
            ],
        ],
    ],
  • Apply migrations from the module migrations folder with a console command:
./yii migrate --migrationPath=@vendor/bariew/yii2-page-cms-module/migrations
  • Go to page/item/index URL and create some pages. Home page is generated as the root by default.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-05-29