Ready-to-use block types for klehm/content-blocks.
| Type | Class |
|---|---|
text |
TextBlock |
title |
TitleBlock |
image |
ImageBlock |
tabs |
TabsBlock |
composer require klehm/content-blocks klehm/content-blocks-kitThe blocks are auto-registered via Symfony autoconfiguration (#[AsContentBlock] attribute) — no extra configuration needed.
ImageBlock requires a FileStorageInterface implementation. The kit ships with LocalFileStorage:
# config/services.yaml
ContentBlocks\Storage\FileStorageInterface:
class: ContentBlocks\Storage\LocalFileStorage
arguments:
$uploadDir: '%kernel.project_dir%/public/uploads/content-blocks'
$publicPrefix: '/uploads/content-blocks'Full documentation and development setup live in the monorepo: github.com/klehm/content-blocks-project
MIT