Skip to content

Commit

Permalink
update read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mc Cormack committed Nov 10, 2017
1 parent 690c41b commit da01b8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 112 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A modular approach to building pages in SilverStripe which allows model based pa

## Screen Shots

- [Block Selection](/docs/images/block-selection.jpg)
- [Block Selection](/docs/images/block-selection.jpeg)

## Installation

Expand All @@ -37,7 +37,7 @@ Add the following to your composer.json file and run /dev/buid?flush=all

### Add Extension and Template Loop

The first step to adding block functionaliy is to apply the block page extension to your DataObject. This can be a normal DataObject or a Page.
The first step to adding block functionality is to apply the block page extension to your DataObject. This can be a normal DataObject or a Page.

```yml
Page:
Expand Down Expand Up @@ -71,14 +71,14 @@ use SilverStripe\Forms\HTMLEditor\HTMLEditorField;

class EditorBlock extends ContentBlock
{
private static $title = 'Editor';
private static $title = 'Editor';

private static $description = 'Simple WYSIWYG editor block';
private static $description = 'Simple WYSIWYG editor block';

private static $preview = '/themes/{YourTheme}/img/block/EditorBlock.png';

private static $db = [
'Content' => 'HTMLText'
'Content' => 'HTMLText'
];

public function getCMSFields()
Expand All @@ -92,7 +92,7 @@ class EditorBlock extends ContentBlock
$fields->addFieldToTab('Root.Main', HTMLEditorField::create('Content')); // example field

return $fields;
}
}
}
```

Expand Down
81 changes: 0 additions & 81 deletions docs/creating-blocks/README.md

This file was deleted.

Binary file added docs/images/block-selection.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 0 additions & 25 deletions docs/installation/README.md

This file was deleted.

0 comments on commit da01b8c

Please sign in to comment.