2017 © Pedro Peláez
 

library sculpin-editor-bundle

Sculpin Editor Bundle

image

mavimo/sculpin-editor-bundle

Sculpin Editor Bundle

  • Wednesday, May 24, 2017
  • by mavimo
  • Repository
  • 1 Watchers
  • 5 Stars
  • 181 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Sculpin Editor Bundle

Setup

Add this bundle in your sculpin.json file:, (*1)

{
    // ...
    "require": {
        // ...
        "mavimo/sculpin-editor-bundle": "@dev"
    }
}

and install this bundle running sculpin update., (*2)

Now you can register the bundle in SculpinKernel class available on app/SculpinKernel.php file:, (*3)

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
           'Mavimo\Sculpin\Bundle\EditorBundle\SculpinEditorBundle'
        );
    }
}

How to use

Content editor can create a new content typing:, (*4)

sculpin editor:create "New content title"

this generate a new draft content using the current date on the path:, (*5)

source/_posts/2014-01-04-new-content-title.md

you can also specify a different date using the format "Y-m-d", like:, (*6)

sculpin editor:create -d 2010-06-10 "New content title"

that genrate file:, (*7)

source/_posts/2010-06-10-new-content-title.md

You can also create a different content type (WIP, see Sculpin PR 96) using the option type, (*8)

sculpin editor:create -t project "New content title"

this generate a new draft project in the folder:, (*9)

source/_projects/2014-01-04-new-content-title.md

TODO

  • Add better file writing procedure
  • Add better support for content type generation after Sculpin PR 96 integration in sculpin core.

The Versions

24/05 2017

dev-master

9999999-dev https://sculpin.io

Sculpin Editor Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

static blog blogging site projects