Collections
The Collections feature in the Sylius CMS Plugin allows administrators to group and manage related content, such as CMS pages, blocks, or media, into named containers. This provides a flexible, reusable structure for building consistent layouts and managing content across your storefront.
Why Use Collections?
Organize Content Group similar content elements—like blog posts, product highlights, or promotional banners—into a single logical unit.
Maintain Layout Consistency Apply the same set of content blocks, media, or pages across multiple areas of your site, ensuring a cohesive design and message.
Improve Flexibility Rearrange or update grouped items in one place without modifying each individual page.
Key Concepts
Container A collection acts as a wrapper that contains blocks, pages, or media.
Presentation Controls how grouped content is rendered and positioned in the storefront.
Customization Ideal for tailoring layouts for specific campaigns, product categories, or user segments.

Creating a Collection
Open the Sylius Admin Panel
Navigate to:
CMS → Collections
Click:
Create
Fill in the Form:
Code: A unique system identifier (e.g.,
home_banner_set
)Name: A readable label shown in the admin panel
Type: Choose whether the collection will include:
Pages
Blocks
Media
Content Field: Depending on the selected type, a dynamic autocomplete field appears (
Pages
,Blocks
, orMedia
). Select one or more content items to include in this collection.
Submit the Form
Accessing a Collection on the Storefront
Once created, the collection becomes accessible at:
{your-store-hostname}/{locale}/collections/{collection-code}/pages
Example:
https://example.com/en_US/collections/homepage-banners/pages
Last updated
Was this helpful?