2 min. read
Categories:
Content editing with Symfony CMF
Sylius finally has initial integration with Symfony CMF for basic content editing. The work on the UX of this new feature begins now.
Content editing with Symfony CMF

Another big integration has just been merged into the master branch.
Please give a warm welcome to the Symfony CMF, which joined our vendors dir.

Until now, there was no built-in content editing feature for Sylius. Most of the time, developers handled it pretty well by using other bundles or content management systems.
Thanks to the great work of the guys from Symfony CMF & PHPCR team, working with content and Symfony2 is pure pleasure.

We have also integrated SonataBlockBundle, which is a great foundation for website building blocks.

About Symfony CMF

The Symfony CMF project makes it easier for developers to add CMS functionality to applications built with the Symfony2 PHP framework.
Key development principles for the provided set of bundles are scalability, usability, documentation and testing.

Believe me, it is much easier.

Pages & Blocks

For initial integration, we have introduced only two very basic content types, Pages & Blocks.
You can manage them through our backend interface and fortunately, it was possible to do through our SyliusResourceBundle, which now supports Doctrine PHPCR ODM. (ORM & MongoDB ODM are supported as well)

Kudos to David Buchmann who worked on the initial support for the ODM!

Pages can be accessed through the content/{the/name/of/content} path and you can render the blocks anywhere you want in the templates. Your users will be able to edit them as well!

Database backend

As you may already know, PHPCR ODM supports different content repository implementations, we’re using the simplest DBAL driver.
For larger installations, with a really large number of documents & nodes, you can consider Jackrabbit.

Future

The goal of this initial integration is to provide the architecture for future features together with a very basic interface for managing it.

Below you can see a very brief overview of our plans regarding this area of Sylius.

  • Adding a proper tree view for the backend editing.
  • Integrating WYSIWYG editor.
  • Allowing to create & manage different types of blocks. (videos, images, custom actions)
  • Enabling the inline editing in the frontend, using the create.js tool.

We are very excited about these plans and you should be too!

Tags:
Share:
Paweł Jędrzejewski
Self-taught developer and entrepreneur, who has built an entire career and business through Open Source technology. Speaker at international conferences. PHPers meetups co-organizer. Keen on helping other young entrepreneurs and companies who may want to follow a similar path.
More from our blog
Cloud 2 min read 17.06.2024
We are thrilled to announce that we just signed a strategic partnership with Platform.sh, and as a result, we are extending our offer with Sylius Cloud powered by Platform.sh. Platform.sh is a modern Platform-as-a-Service (PaaS) solution that allows businesses to leverage the cloud environment without losing access to the code… Read More
Technical 2 min read 11.06.2024
Abstract 1.12 released in Q4 2022 1.13 on Apr 23rd, 2024 (a year later than we anticipated while releasing 1.12) 3859 commits 23 contributors A stabilized Sylius API powered by API Platform It’s been a long and bumpy road. Having it behind our backs was a highway that led Sylius… Read More
Business Ecosystem News 2 min read 06.06.2024
Welcome to the May summary! As an open-source eCommerce framework, Sylius continues to evolve with significant contributions from our vibrant community and valuable product updates. Apart from describing the technical changes, we will also quickly summarize the Sylius Technical Fundamentals & Sylius Polish Community Meetup and eCommerce Day Kaunas, as… Read More
Comments