PHPackages                             toastnz/quickblocks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. toastnz/quickblocks

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

toastnz/quickblocks
===================

Silverstripe content blocks module

6.0.1(3y ago)015.0k↓41.1%BSD-3-ClausePHP

Since Feb 21Pushed 2y ago5 watchersCompare

[ Source](https://github.com/toastnz/quickblocks)[ Packagist](https://packagist.org/packages/toastnz/quickblocks)[ RSS](/packages/toastnz-quickblocks/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (8)Versions (56)Used By (0)

SilverStripe QuickBlocks
========================

[](#silverstripe-quickblocks)

Simple content blocks system. Nothing fancy, easy to implement.

Requirements
------------

[](#requirements)

- silverstripe/cms 4.0.x
- silverstripe/framework 4.0.x
- symbiote/silverstripe-gridfieldextensions 3.1.1
- edgarindustries/youtubefield 1.1
- sheadawson/silverstripe-linkable 2.0.x-dev

Installation
------------

[](#installation)

Add the following to your `config.yml`:

```
Page:
  extensions:
    - Toast\QuickBlocks\QuickBlocksExtension
```

Optionally:

```
PageController:
  extensions:
    - Toast\QuickBlocks\QuickBlocksControllerExtension
```

Use `Page` or other class that extends `SiteTree`.

In your `Layout/Page.ss` template, add the following:

```

    $ForTemplate

```

Configuration
-------------

[](#configuration)

### Add / remove available block classes

[](#add--remove-available-block-classes)

```
Toast\QuickBlocks\QuickBlocksExtension:
  available_blocks:
    - Toast\QuickBlocks\TextBlock
```

### Create a custom block

[](#create-a-custom-block)

Extend `QuickBlock` to create a new block type.

```
