Giter Club home page Giter Club logo

story's Introduction

Story CMS Extension

Content Management System for Orchestra Platform, based on Cello CMS and inspired by WardrobeCMS.

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

Installation

To install through composer, simply put the following in your composer.json file:

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

And then run composer install to fetch the package.

Quick Installation

You could also simplify the above code by using the following command:

composer require "orchestra/story=~3.0"

Setup

To start using Story CMS, activate the extension from Orchestra Platform Administrator Interface.

Quick Guide

By default, Story CMS is using Markdown format for post and page, however you can customize this by adding your own prefered formatting parser.

Adding new Format

use Orchestra\Story\Facades\StoryFormat;

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

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

You can add a new JavaScript text editor using:

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

License

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.

Credit to WardrobeCMS for the inspiration.

story's People

Contributors

crynobone avatar ahmadshah avatar meroje avatar

Stargazers

Suke Han avatar  avatar Salahuddin Hairai avatar Kazik avatar Masood Ahmed avatar Ferri Sutanto avatar  avatar Victor Teixeira avatar Didier Neira avatar Jānis Lācis avatar Adelino Monteiro avatar Marcos Sader avatar ney chang avatar  avatar

Watchers

 avatar James Cloos avatar  avatar Izuddin Helmi avatar  avatar

story's Issues

Add Layouts and Partials tabs to Story

A page sits inside a template and both may contain zero or more partials. This is something LemonStand did really well and it's quite intuitive. The benefit of an approach like this is everything can be done from the CMS and there is no need to mess around with files on the server.

Here is an example workflow.

  • Create a layout 'Site'
  • Create a page 'About' and assign it the 'Site' layout
  • Create some partials for the layout and page to use

Example Site layout:

<!DOCTYPE html>
<html class="no-js">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>{{ page.title }}</title>
        <meta name="description" content="{{ page.meta_desc }}">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        @partial('header_styles')
        @partial('header_scripts')
    </head>
    <body>
        <!--[if lt IE 8]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

        <!-- Add your site or application content here -->
        @page()

        @partial('footer')
    </body>
</html>

Example header_styles partial:

<!-- Place favicon.ico and apple-touch-icon(s) in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

Example footer partial:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
    (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
    function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
    e=o.createElement(i);r=o.getElementsByTagName(i)[0];
    e.src='//www.google-analytics.com/analytics.js';
    r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
    ga('create','UA-XXXXX-X');ga('send','pageview');
</script>

And example About page:

<h1>About Us</h1>
<p>Hello world! This is HTML5 Boilerplate.</p>

Hopefully the above made sense. It's a very simple concept that provides unlimited flexibility.

Themes

Hi,

I've got a question concerning themes.
I'm seeing a theme.json file in the public/default folder, but nothing else. I also don't see this setting somewhere (to set a theme).

Is this feature already available or is there because it's under development ?

Thanks,

Trouble using sftp on moutain lion

I have Orchestra Platform 2 up and running, installed.

I've chmod'd the follow directories 777
app/storage
public/packages

both my custom app extension & the Control extension could be enabled without FTP, but none of my local FTP (and sftp) credentials dont work when attempting to enable Story extension.

I've used the following hosts:
localhost
127.0.0.1
192.168.0.x
::1

I've tested credentials with both ftp & sftp through my terminal, which work just fine.

Machine Stats:

  • Moutain Lion 10.8.5
  • Lighttpd
  • PHP 5.3+

Any ideas?

Ability to register and use different format.

Register A Format.

Orchestra\Story\FormatManager (alias StoryFormat) should extends Illuminate\Support\Manager.

StoryFormat::extend('markdown', function ()
{
    return new MarkdownParser();
});

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

Add an HTML/JS Editor

ApiPostController and ApiPageController should support a before filter that would run following event.

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

Default format.

Should be able to choose default format using the extension configuration page.

Toggle Format

You should be able to change format on runtime using /resources/story.posts/2/edit?format=markdown to /resources/story.posts/2/edit?format=bbcode for example.

Link back to Site from Admin Home

The Site name and "Home" on the top left of the Admin Home page both link to the Admin Home. I would expect 1 of them to link back to the site root; preferably the site name.

In this image, the "RockyPrep" and "Home" both link to /admin. I think the "RockyPrep" should link to /.
link

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.