caritor/yii2-cms

Easy manage cms pages and menu items

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-06-14 12:32 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:14:45 UTC


README

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Yii2 cms module will help to add multiple pages, menu areas and menu items. This a kind of wordpress way of managing pages and menu items, i.e, once enough pages, menu items and menu areas has been built, using a drag and drop feature pages can be used to create a menu tree with multiple menu levels.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist caritor/yii2-cms "dev-master"

or add

"cms/yii2-cms": "dev-master"

to the require section of your composer.json file.

Apply migration

yii migrate --migrationPath=vendor/caritor/yii2-cms/migrations

Configuration:

'modules' => [
    'cms' => [
        'class' => 'caritor\cms\Module'
    ],
],

Widget To Pull Menu items:

use caritor\cms\widgets\CmsmenuWidget;
CmsmenuWidget::widget(['area_code' => '{{area_code}}']);

Url Routing:

Pages -

	?r=cms/pages

Menu Areas -

	?r=cms/menuarea

Menus -

	?r=cms/menu/selectarea