Manual Installation

1. Install the Plugin via Composer

composer require sylius/cms-plugin

2. Enable the Bundle

# config/bundles.php

return [
    ...
    Sylius\CmsPlugin\SyliusCmsPlugin::class  => ['all' => true],
];

3. Import Configuration

# config/packages/_sylius.yaml

imports:
    ...
    - { resource: "@SyliusCmsPlugin/config/config.yaml" }

4. Import routes

# config/routes.yaml

...
sylius_cms:
    resource: "@SyliusCmsPlugin/config/routes.yaml"

5. Import plugin assets

6. Install assets

7. Install Required JavaScript Packages

The CMS plugin uses trix for rich text editing and swiper for image galleries.

Run the following commands:

And add the following JS controller:

Then compile the frontend assets:

8. Run Doctrine Migrations

The plugin comes with database changes. Run:

9. Clear the Cache

Finally, clear the Symfony cache to ensure changes are applied:

Installation Complete!

You can now manage CMS content through the Sylius Admin Panel under the new "CMS" section.

Last updated

Was this helpful?