Coder Social home page Coder Social logo

thyseus / yii2-sitecontent Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 34 KB

Tiny Sitecontent module for the Yii framework. Contains only one table where everything is stored.

PHP 100.00%
yii2-sitecontent yii-framework tiny cms content-management content-management-system yii2-extension yii2-cms

yii2-sitecontent's Introduction

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

$ composer require thyseus/yii2-sitecontent
$ php yii migrate/up --migrationPath=@vendor/thyseus/yii2-sitecontent/migrations

Configuration

Add following lines to your main configuration file:

'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:

License

Yii2-sitecontent is released under the GPLv3 License.

yii2-sitecontent's People

Contributors

thyseus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.