LogoLogo
sylius.com
  • 📓Sylius 1.x Documentation
  • 📖Sylius 2.0 Documentation
    • Organization
      • Release Cycle
      • Backwards Compatibility Promise
      • Sylius Team
      • Sylius Roadmap
  • Getting Started with Sylius
    • Installation
    • Basic Configuration
    • Shipping & Payment
    • First Product
    • Customizing the Shop
    • Customizing Business Logic
    • Using API
    • Installing Plugins
    • Deployment
    • Summary
  • The Book
    • Introduction to Sylius
    • Installation
      • System Requirements
      • Sylius CE Installation
        • Sylius CE Installation with Docker
      • ➕Sylius Plus Installation
      • Upgrading Sylius CE
      • Upgrading Sylius Plus
    • Architecture
      • Architecture Overview
      • Architectural Drivers
      • Resource Layer
      • State Machine
      • Translations
      • E-Mails
      • Contact
      • Fixtures
      • Events
    • Configuration
      • Channels
      • Locales
      • Currencies
    • Customers
      • Customer & ShopUser
      • ➕Customer Pools
      • AdminUser
      • Addresses
        • Countries
        • Zones
        • Addresses
        • Address Book
    • Products
      • Products
      • Product Reviews
      • Product Associations
      • Attributes
      • Pricing
      • Catalog Promotions
      • Taxons
      • Inventory
      • ➕Multi-Source Inventory
      • Search
    • Carts & Orders
      • Orders
      • Cart flow
      • Taxation
      • Adjustments
      • Cart Promotions
      • Coupons
      • Payments
      • 🧩Invoices
      • Shipments
    • Support
    • Contributing
      • Contributing Code
        • Submitting a Patch
        • ⚠️Security Issues
        • Coding Standards
        • Conventions
        • Sylius License and Trademark
      • Key Contributors
  • The Customization Guide
    • Customizing Models
      • How to add a custom model?
    • Customizing Forms
      • How to add a live form for a custom model?
    • Customizing Templates
    • Customizing Translations
    • Customizing Flashes
    • Customizing API
    • Customizing Serialization of API
    • Customizing Payments
      • How to integrate a Payment Gateway as a Plugin?
  • Sylius Official Plugins Documentation
    • CMS Plugin
      • Getting Started
        • Installation
      • Features Overview
        • Collections
        • Content Templates
        • Pages
        • Blocks
        • Media
      • Developer Reference
        • Collections
        • Pages
        • Blocks
        • Media
        • Content Element
        • Templates
  • THE COOKBOOK v1.x
    • The Cookbook v1.x
Powered by GitBook
LogoLogo

Developer

  • Community
  • Online Course

About

  • Team

© 2024 Sylius. All Rights Reserved

On this page
  • Developer Reference
  • Customization

Was this helpful?

Edit on GitHub
  1. Sylius Official Plugins Documentation
  2. CMS Plugin

Developer Reference

PreviousMediaNextCollections

Last updated 1 day ago

Was this helpful?

Developer Reference

Now that you’ve explored the Feature Overview, this section shows you how to integrate and customize Sylius CMS Plugin components in your storefront:

  • Twig Hooks — the recommended way to inject CMS features into existing templates

  • Twig Functions — direct template calls when hooks aren’t available

To unlock the full power of the CMS plugin, pick the right entry points and inject your content where it makes sense. We’ll cover Twig Hook setups in each module below. If you’re new to Twig Hooks, start with the guide.

Jump to the module you need:

Customization

You can customize this plugin using:

In order to check what services are available with this plugin, run the following command:

bin/console debug:container sylius_cms

Note:

All forms are prefixed with 'sylius_cms.form.'*

If you want to check what routes are available with this plugin, use:

bin/console debug:router | grep sylius_cms

To check parameters available with the plugin, execute:

bin/console debug:container --parameters | grep sylius_cms

Twig Hooks
Collections
Pages
Blocks
Media
Content Element
Templates
Sylius Twig Hooks
Symfony decorator pattern
Symfony form extension