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
  • Why Use Content Templates?
  • Creating a Content Template
  • Using Content Templates in Pages and Blocks

Was this helpful?

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

Content Templates

Content Templates let you define reusable skeletons of content elements that you can drop into blocks or pages. They speed up assembly and enforce consistent layouts across your store.

Available content elements:

  • Single media

  • Multiple media

  • Products carousel by Taxon

  • Products grid by Taxon

  • Pages collection

  • Textarea

  • Heading

  • Products carousel

  • Products grid

  • Taxons list

  • Spacer

Why Use Content Templates?

  • Consistency Ensure all pages or blocks built from the same template share the same structure and styling.

  • Efficiency Build complex layouts once and reuse them everywhere, reducing manual work.

  • Flexibility Modify the template structure in one place to update all associated pages and blocks.


Creating a Content Template

  1. Open the Sylius admin panel.

  2. Navigate to CMS → Content Templates.

  3. Click “Create New Content Template.”

  4. Enter a Name (e.g. “Product Feature Section”).

  5. Choose a Type (“Page” or “Block”).

  6. Add content elements by selecting and arranging widgets from the list above.

  7. Save the template.

  8. Repeat to create additional templates as needed.


Using Content Templates in Pages and Blocks

  1. In the page or block editor, locate the Content Template field.

  2. Begin typing the template name—an autocomplete dropdown will appear.

  3. Select your template and click Add to insert it.

  4. Caution: Confirming a template will replace any existing configuration in that section for the current locale.

Once inserted, fill in the template’s fields and publish your page or block as usual.

PreviousCollectionsNextPages

Last updated 6 days ago

Was this helpful?