Download the PHP package pixelopen/sulu-blockbundle without Composer
On this page you can find all versions of the php package pixelopen/sulu-blockbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelopen/sulu-blockbundle
More information about pixelopen/sulu-blockbundle
Files in pixelopen/sulu-blockbundle
Package sulu-blockbundle
Short Description A Symfony Bundle for Sulu content management platform containing boilerplate blocks
License MIT
Informations about the package sulu-blockbundle
Sulu block bundle
A bundle that allows to manage content block for the SULU CMS.
It is a fork from the https://github.com/Harborn-digital/sulu-block-bundle project.
1. Installation
Composer
2. Usage
Template
Page template modification (mind to include this element: xmlns:xi="http://www.w3.org/2001/XInclude")
Twig
Add blocks to the Twig
Override Twig templates
Create the following structure to override blocks via Twig templates/bundles/PixelBlockBundle
.
If you wish to override the following block Resources/views/html5/parts/images.html.twig
, you must create the next file : templates/bundles/PixelBlockBundle/html5/parts/images.html.twig
.
And if you only want to replace some of the template blocks in this bundle, you can extend the base template using this namespace @!Block
.
For example
3. Available blocks
- Rich text with a title (text)
- Images with a title (images)
- Images with a title and a rich text (image_text)
- Image, title with sub-title and quote (image_title_subtitle_quote)
- Youtube video (youtube)
- Link (link)
- Quote (quote)
- Before/After (image_before_after)
- Twi columns (two_columns)
- Three columns (three_columns)
4. Add properties
When you use a block and you want to add additional properties, you can configure them separately in config/templates/PixelSuluBlockBundle/properties/{blockname}.xml
.
For instance, if you wish to add a caption to the images block, you will create the following fil in you customer application:
5. Override properties parameters
5.1 Completely replace all parameters
When you use a block and you want to choose youself all the parameters to the blocks properties, you can configure them separately in config/templates/PixelSuluBlockBundle/params/{blockname}.xml
.
For example, if you want to define all the text editor property parameters, you will create the following file in you customer application:
5.2 Adjust parameters
When you use a block and you wish to edit parameters to the blocks properties, you can configure them in config/templates/PixelSuluBlockBundle/params/{blockname}_adjustments.xml
.
For instance, if you want to adjust the height and deactivate the tab feature of the text editor property, you will create the following file in your customer application:
5.3 Add parameters
When you use a block and you want to add parameters to the blocks properties, you can separately configure them in config/templates/PixelSuluBlockBundle/params/{blockname}_additions.xml
.
For instance, if you wish to add the ui_color parameter to the text_editor property, you will create the following file in your customer application:
All versions of sulu-blockbundle with dependencies
pixeldev/protocol-stream Version ^1.0
sulu/sulu Version ^2.5
symfony/dependency-injection Version ^5.0 || ^6.0
symfony/http-kernel Version ^5.0 || ^6.0
sulu/web-twig Version ^2.5