Skip to content

Klehm/content-blocks-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContentBlocks Kit

Ready-to-use block types for klehm/content-blocks.

Included blocks

Type Class
text TextBlock
title TitleBlock
image ImageBlock
tabs TabsBlock

Installation

composer require klehm/content-blocks klehm/content-blocks-kit

The blocks are auto-registered via Symfony autoconfiguration (#[AsContentBlock] attribute) — no extra configuration needed.

File uploads

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'

Documentation & contributing

Full documentation and development setup live in the monorepo: github.com/klehm/content-blocks-project

License

MIT

About

Symfony user friendly content builder - kit package

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors