Sylius CMS Plugin

The Sylius CMS Plugin provides powerful and flexible content management capabilities to Sylius-based eCommerce applications. It enables merchants and developers to manage static pages, content blocks, and sections directly from the Sylius Admin Panel, without having to hardcode content into templates.


Key Features

  • Static Pages: Create and manage SEO-friendly pages (e.g., About Us, FAQs) with URL slugs, meta information, and WYSIWYG content.

  • Content Blocks: Reusable content snippets (text, images, HTML) that can be injected into templates or layouts.

  • Sections: Organize blocks into structured layout sections such as homepage features or banners.

  • Trix Editor Integration: Lightweight WYSIWYG editor for rich text formatting.

  • Multilingual Support: Fully integrated with Sylius’ translations system.

  • Admin Panel Interface: Manage all content visually without touching templates.

  • API Compatibility: CMS content can be exposed via API if needed.


Use Cases

  • Marketing pages (Blog, About, Shipping, Returns, etc.)

  • Landing pages for campaigns or promotions

  • Home page carousels, banners, or testimonials

  • Custom content blocks for sidebar or footer sections

  • SEO-optimized static content with meta tags


How It Works

The plugin integrates seamlessly with Sylius Admin UI and the core resource management system. Each CMS entity (Page, Block, Section) is treated as a standard Sylius Resource, so you can:

  • Extend them via Doctrine as needed

  • Use custom Twig templates for rendering

  • Override them with Symfony events or Sylius state machine if required


Tech Stack

  • Symfony Flex-based installation

  • Doctrine ORM

  • Trix Editor

  • Swiper.js for image sliders

  • Webpack Encore for asset compilation


🔗 Source Code

GitHub: Sylius/CmsPlugin

Last updated

Was this helpful?