orchestra/story

Orchestra平台内容管理系统扩展

v3.2.0 2015-12-26 18:48 UTC

README

Orchestra平台的内容管理系统,基于Cello CMS,并受到WardrobeCMS的启发。

Latest Stable Version Total Downloads MIT License Build Status Scrutinizer Quality Score

安装

要通过composer安装,只需将以下内容放入您的composer.json文件中

{
	"require": {
		"orchestra/story": "~3.0"
	}
}

然后运行composer install以获取软件包。

快速安装

您还可以使用以下命令简化上述代码

composer require "orchestra/story=~3.0"

设置

要开始使用Story CMS,请从Orchestra平台管理员界面激活扩展。

快速指南

默认情况下,Story CMS使用Markdown格式进行帖子页面的编辑,但您可以添加自己的首选格式解析器来自定义此设置。

添加新格式

use Orchestra\Story\Facades\StoryFormat;

StoryFormat::extend('bbcode', function () {
    return new BBCodeParser();
});

class BBCodeParser extends Orchestra\Story\Parsers\Parser {}

您可以使用以下方法添加新的JavaScript文本编辑器

Event::listen('orchestra.story.editor: bbcode', function () {
    // Add asset
});

许可协议

The MIT License

Copyright (C) 2012 by Mior Muhammad Zaki <http://git.io/crynobone>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

感谢WardrobeCMS的启发。