Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thyseus/yii2-sitecontent
Tiny Sitecontent module for the Yii framework. Contains only one table where everything is stored.
https://github.com/thyseus/yii2-sitecontent
cms content-management content-management-system tiny yii-framework yii2-cms yii2-extension yii2-sitecontent
Last synced: about 1 month ago
JSON representation
Tiny Sitecontent module for the Yii framework. Contains only one table where everything is stored.
- Host: GitHub
- URL: https://github.com/thyseus/yii2-sitecontent
- Owner: thyseus
- Created: 2016-11-09T10:28:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T08:18:35.000Z (over 6 years ago)
- Last Synced: 2024-11-13T10:40:20.680Z (2 months ago)
- Topics: cms, content-management, content-management-system, tiny, yii-framework, yii2-cms, yii2-extension, yii2-sitecontent
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ATTENTION:
github has been bought by Microsoft. This repository is orphaned and has been moved to:
https://gitlab.com/thyseus/yii2-sitecontent
Thanks a lot for your understanding and blame Microsoft.
# Yii2-sitecontent
Very tiny and simple Sitecontent module for the Yii framework. Contains only one table where the sitecontent is stored.
Uses Summernote (http://summernote.org/) WYSIWYG Editor.## Installation
```bash
$ composer require thyseus/yii2-sitecontent
$ php yii migrate/up --migrationPath=@vendor/thyseus/yii2-sitecontent/migrations
```## Configuration
Add following lines to your main configuration file:
```php
'modules' => [
'sitecontent' => [
'class' => 'thyseus\sitecontent\Module',
'modelClass' => '\app\models\User', // optional. your User model. Needs to be ActiveRecord.
],
],
```By default only users that apply to $user->can('admin') are allowed to access the sitecontent administation.
You can modify this with the 'accessCallback' configuration option.## Routes
Use the following routes to access the sitecontent module:
* index: https://your-domain/sitecontent/sitecontent/index
* view: https://your-domain/sitecontent/sitecontent/view?id=?lang=
* view: https://your-domain/sitecontent/sitecontent/view?id=## License
Yii2-sitecontent is released under the GPLv3 License.