mirror of
https://github.com/jbcr/SyliusCmsPlugin.git
synced 2026-03-24 00:42:17 +01:00
2.2 KiB
2.2 KiB
UPGRADE FROM 1.0 TO 2.0
- A lot of database modifications has been made. Read the below changelog first and then migrate your
structure using
bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migratecommands - Media type field has been removed. For image blocks, use the media with image type. For HTML blocks, use raw content in WYSIWYG editor
- Chanel awareness has been added to pages, blocks, FAQs, sections and media. That being said, many repository methods changed their signatures. In case you customized them in your src, check new signatures in interfaces under BitBag\SyliusCmsPlugin\Repository namespace
- WYSIWYG editor has been introduced. You will need to import it in your AppKernel and install its assets. For more, check the installation guide
- Sitemap support was added, you will need to enable extra bundle in your AppKernel. Read more in the sitemap documentation
- Because of the possibility to nest CMS Twig functions in the admin backend, in order to render block and page content
you are now supposed to use
bitbag_cms_render_contentTwig function
UPGRADE FROM 1.2.1/1.1.1 to 1.2.2
bitbag_render_blockhas been renamed tobitbag_cms_render_block.- Database tables has been prefixed with
bitbag_cmsinstead ofbitbag_sylius_cms_pluginfor backward compatibility and simplicity. ImageBlockUploadListenerhas been renamed toBlockImageUploadListener- Resources has been moved from
sylius_resourcetoresourcesdirectory - Doctrine models has been marked as
mappedSuperclassinstead ofentity
UPGRADE FROM 1.0.0 to 1.1.0/1.2.0 and from 1.1.0/1.2.0 to 1.2.1
- Generate Doctrine diff with
bin/console doctrine:migrations:diffcommand, add a simple SQL insert that moves the data from the old table and inserts it to the new one. After it's done, it would be nice to drop the old tables in your database, so you will keep your environment clean. bitbag_render_page_link_by_codehas been removed, usebitbag_sylius_cms_plugin_shop_page_show_link_by_codecontroller route instead. See README.md for more info.