- 2018-11-13: [BUGFIX] Older template path
CmfBlockBundl:Block:some-template.html.twig
is replaced to@CmfBlock/Block/some-template.html.twig
to be recognized by newer Symfony versions
- 2017-11-16: Removed php 5.6 and 7.0 support, removed Symfony 3.0.* and 3.1.* support
Release 2.0.0
- 2017-02-10: [BC BREAK] Removed the
ImagineBlock
as the CmfMediaBundle is abandoned. - 2017-02-09: [BC BREAK] Added child restrictions to the block documents. See the UPGRADE guide for detailed information.
- 2016-07-12: [BC BREAK] Moved all Sonata related classes into sonata-admin-integration-bundle
- 2016-07-10: [BC BREAK]
prefix
andpostfix
are not longer injected into CmfBlockHelper. EmbedBlocksParser is injected instead - 2016-06-21: [BC BREAK] Removed all
*.class
parameters.
- 2016-06-22 Make embedding multiple blocks into the content work.
- Support Symfony 2.8
- Support PHP 7
Released.
- 2014-06-06: Updated to PSR-4 autoloading
Release 1.1.0
- 2014-04-11: drop Symfony 2.2 compatibility
- 2014-03-24: Blocks now support the ChildExtension to simplify attaching blocks in Sonata Admin. Activate the ChildExtension from the CoreBundle to profit from this.
- 2014-03-24: [Dependencies]: Updated to the new SonataBlockBundle that requires the SonataCoreBundle.
- 2014-03-23: Added a Repository Initializer for the block basepath
- 2013-10-04: [Sonata Admin]: Removed overwritten baseRouteName and baseRoutePattern in the block admins. The names now follow the convention, becoming cmf_block_actionblock instead of cmf_block_action and so on.
- 2013-09-25: Renamed
divisibleBy
,divisibleClass
andchildClass
ContainerBlock options todivisible_by
,divisible_class
andchild_class
- 2013-08-31: [Templating] The embed blocks filter defaults have changed
to be safer in combination with wysiwyg editors. You can either adjust your
content to match
%embed-block|block-identifier|end%
or (not recommended) configuretwig.cmf_embed_blocks.prefix
and.postfix
to match the previous values<span>%embed-block:"
and"%</span>
. - 2013-08-31: [Configuration] The persistence.phpcr.content_basepath was removed. It was used inconsistently with block_basepath. One is enough. If you configure content_basepath, remove it from the configuration, if you relied on CoreBundle to configure this for us, just make sure to update CoreBundle as well.
- 2013-08-15: [ImagineBlock] changed the template block_imagine.html.twig to pass the image id property to the imagine_filter instead of the image object.
- 2013-08-08: [Model] Removed every Multilang models and implement TranslatableInterface instead to fit CMF standards.
- 2013-08-08: [Admin] Added explicit base route name / patterns to fix
broken schema.
cmf_bundle_action
becomescmf_block_action
. - 2013-08-08: [PublishWorkflow] AbstractBlock now implements the publish workflow and the PHPCRBlockLoader expects a security context to check if blocks are published. If a block is not published, the same behaviour as when the block is not found is used (depending on the configuration either returning an EmptyBlock or throwing an exception).
-
2013-08-01: [DependencyInjection] moved phpcr specific configuration under
persistence.phpcr
and addedenabled
flag. -
2013-08-01: [Model] Updated content to body property for
SimpleBlock
,MultilangSimpleBlock
andStringBlock
.To migrate adapt the following script. Run it once for each document class, replacing DOCUMENT_CLASS with
SimpleBlock
,MultilangSimpleBlock
,StringBlock
respectively:$ php app/console doctrine:phpcr:nodes:update \ --query="SELECT * FROM [nt:unstructured] WHERE [phpcr:class] = \"Symfony\\Cmf\\Bundle\\BlockBundle\\Doctrine\\Phpcr\\DOCUMENT_CLASS\"" \ --apply-closure="\$node->setProperty('body', \$node->getPropertyValue('content'));" $ php app/console doctrine:phpcr:nodes:update \ --query="SELECT * FROM [nt:unstructured] WHERE [phpcr:class] = \"Symfony\\Cmf\\Bundle\\BlockBundle\\Doctrine\\Phpcr\\DOCUMENT_CLASS\"" \ --remove-prop=content
-
2013-08-01: [Model] Adopted persistance standard model, see: http://symfony.com/doc/master/cmf/contributing/bundles.html#Persistence.
The PHPCR-ODM will now not be automatically loaded but only when
persistence.phpcr.enabled
is set to true.To migrate adapt the following script. Run it once for each document class, replacing DOCUMENT_CLASS with
ActionBlock
,ContainerBlock
,ImagineBlock
,MultilangImagineBlock
,MultilangSimpleBlock
,MultilangSlideshowBlock
,ReferenceBlock
,RssBlock
,SimpleBlock
,SlideshowBlock
andStringBlock
respectively:$ php app/console doctrine:phpcr:nodes:update \ --query="SELECT * FROM [nt:unstructured] WHERE [phpcr:class] = \"Symfony\\Cmf\\Bundle\\BlockBundle\\Document\\DOCUMENT_CLASS\"" \ --set-prop=phpcr:class="Symfony\\Cmf\\Bundle\\BlockBundle\\Doctrine\\Phpcr\\DOCUMENT_CLASS"
- 2013-06-21: [ActionBlock] ActionBlock got the method
resolveRequestParams. If you want the locale to be propagated, update your
blocks to have
_locale
in the $requestParams. This is done automatically for new ActionBlock instances. You can also configure custom things to pass on to the sub request. - 2013-05-30: [DependencyInjection] Renamed config item
document_manager_name
tomanager_name
- 2013-05-23: Dropped Symfony 2.1 support
- 2013-05-23: [Block] Implemented SonataBlockBundle BlockContext
[earlier commits before creation of Changelog]