https://github.com/mavimo/sculpin-editor-bundle
Sculpin Editor Bundle
https://github.com/mavimo/sculpin-editor-bundle
Last synced: 11 months ago
JSON representation
Sculpin Editor Bundle
- Host: GitHub
- URL: https://github.com/mavimo/sculpin-editor-bundle
- Owner: mavimo
- Created: 2014-01-04T16:31:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T22:15:29.000Z (about 9 years ago)
- Last Synced: 2025-07-26T15:06:47.315Z (11 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sculpin Editor Bundle
## Setup
Add this bundle in your ```sculpin.json``` file:
```json
{
// ...
"require": {
// ...
"mavimo/sculpin-editor-bundle": "@dev"
}
}
```
and install this bundle running ```sculpin update```.
Now you can register the bundle in ```SculpinKernel``` class available on ```app/SculpinKernel.php``` file:
```php
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:
```
sculpin editor:create "New content title"
```
this generate a new draft content using the current date on the path:
```
source/_posts/2014-01-04-new-content-title.md
```
you can also specify a different date using the format "Y-m-d", like:
```
sculpin editor:create -d 2010-06-10 "New content title"
```
that genrate file:
```
source/_posts/2010-06-10-new-content-title.md
```
You can also create a different content type (WIP, see [Sculpin PR 96](https://github.com/sculpin/sculpin/pull/96)) using the option _type_
```
sculpin editor:create -t project "New content title"
```
this generate a new draft project in the folder:
```
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](https://github.com/sculpin/sculpin/pull/96) integration in sculpin core.