Download the PHP package yii2mod/yii2-cms without Composer
On this page you can find all versions of the php package yii2mod/yii2-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yii2mod/yii2-cms
More information about yii2mod/yii2-cms
Files in yii2mod/yii2-cms
Informations about the package yii2-cms
Yii2 CMS Extension
This module provides a web interface for content management system and includes the following features:
- Allows CRUD operations for pages
- Support Markdown Editor
- Support Froala Editor
- Support Comments Management System
- Integrated with yii2mod/base
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json.
CONFIGURATION
Database Migrations
Before usage this extension, we'll also need to prepare the database.
Module Setup
To access the module, you need to configure the modules array in your application configuration:
You can then access to management section through the following URL:
Configure Url Manager
You need to configure the urlManager
array in your application configuration:
Setup Page Action
Add to SiteController (or configure via $route
param in urlManager
):
Now you can use this module with all available features.
Features:
- By default this extension uses the
froala editor
for manage cms pages, you can change editor configuration by the following code:
List of options: https://www.froala.com/wysiwyg-editor/docs/options
Configuration example: https://github.com/froala/yii2-froala-editor#usage
-
Markdown Editor support:
- You can insert your own widget on the page by the following steps:
-
Create the widget, for example:
- When you create the page via admin panel add the following code to the page content:
-
You can use parameters in your page content, for example: {siteName}, {homeUrl}. For parsing this parameters you can use the
baseTemplateParams
property: - You can change comments module settings by the following code:
For detail information about comments module please visit the following page
Support us
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
All versions of yii2-cms with dependencies
yiisoft/yii2 Version ~2.0.12
yiisoft/yii2-bootstrap Version *
yii2mod/yii2-enum Version *
yii2mod/yii2-editable Version *
yii2mod/yii2-comments Version *
yii2mod/yii2-markdown Version *
froala/yii2-froala-editor Version ^2.6.0
cebe/markdown Version ~1.1.1
yii2tech/ar-file Version *
yiisoft/yii2-imagine Version ^2.1