---
title: Matrix and CKEditor Builder Demo for Craft CMS
date: 2025-10-02T13:05:00+02:00
author: webworker
canonical_url: "https://craft-kit.dev/builder"
section: Pages
---
Two ways to compose content. The same reusable Twig components.

Build pages from separate Matrix blocks, or embed those components in the flow of a CKEditor field. This demo shows both approaches side by side.

[Explore Matrix](#matrix) · [Explore CKEditor](#ckeditor)

## Matrix: build the page

Each block is an entry with its own fields and Twig template. Add, arrange and edit blocks in Craft; a shared content container keeps the page aligned while each wrapper controls backgrounds and spacing.

 

 

  ![Craft control panel showing a Matrix field with reusable page blocks.](https://craft-kit.dev/uploads/transforms/_768xAUTO_crop_center-center_85_none_ns/470/MatrixBuilder.jpeg?v=1794754553) The Matrix field in Craft’s control panel. Each block has its own fields and can be reordered.  

   How does the Matrix Builder work?  

A Matrix field holds a sequence of entries with different types. Here, those types represent page blocks. Editors choose a block, fill in its fields and move it into place. Twig renders each entry through its block template.

 

  Text  

Use a text block for headings, paragraphs, lists and links. This introduction is a text block. Rich text stays editable in Craft while its presentation comes from the shared typography styles.

 

  Media  

A media block displays an image, video or audio asset, with an optional caption. The image example below uses responsive image transforms and includes a photographer credit.

[View the media block](#block-media)

 

  Buttons  

Group links to entries or external URLs in a button block. The example links to other demos in this starter kit.

[View the button block](#block-buttons)

 

  Cards  

Each card combines a headline and teaser with an optional image and link. Add and reorder the nested card entries inside the block.

[View the card block](#block-cards)

 

  Accordions  

You are using an accordion block now. Each item has a heading, rich text and an initial open or closed state. Use it for FAQs or supporting details that readers can expand when needed.

 

  Gallery  

Select and arrange several images in one block. The page shows a preview grid; opening an image launches the lightbox with the full selection.

[View the gallery block](#block-gallery)

 

  Slider  

The slider presents nested card entries in an Embla carousel. Use the arrow buttons or drag the cards to browse. This example uses cards without images.

[View the slider block](#block-slider)

 

  Call to action  

A call-to-action block combines a headline, optional text and a link. Use it to give a section a clear next step.

[View the call-to-action block](#block-cta)

 

 

 

  ![A tactile architectural model of orange, ivory and graphite blocks arranged as a modular page.](https://craft-kit.dev/uploads/transforms/_768xAUTO_crop_center-center_85_none_ns/2525/builder-matrix-blocks.jpeg?v=1794754553)Generated with AI Reusable blocks, arranged as a page. — © AI-generated illustration for Craft Kit  

 [Map](https://craft-kit.dev/map) [Blog](https://craft-kit.dev/blog) [Search](https://craft-kit.dev/search) 

 

## Cards: reusable content at a glance

  ![Four upright ivory, orange and graphite card-like blocks arranged on a low plinth.](https://craft-kit.dev/uploads/transforms/_480xAUTO_crop_center-center_85_none_ns/2527/builder-reusable-cards.jpeg?v=1794754554)Generated with AI 

## Datastar Blog

Filter posts and load more results without a full page reload.

 

 [Blog](https://craft-kit.dev/blog) 

   ![A folded ivory accordion sculpture with an orange central panel and graphite end supports.](https://craft-kit.dev/uploads/transforms/_480xAUTO_crop_center-center_85_none_ns/2528/builder-accordion-folds.jpeg?v=1794754554)Generated with AI 

## Datastar Map

Explore locations with live filtering, markers and clustering.

 

 [Map](https://craft-kit.dev/map) 

   ![An open ivory folio with paragraph-like grooves and inset orange and graphite components.](https://craft-kit.dev/uploads/transforms/_480xAUTO_crop_center-center_85_none_ns/2526/builder-ckeditor-flow.jpeg?v=1794754555)Generated with AI 

## Datastar Search

Search Craft content and update the results as you type.

 

 [Search](https://craft-kit.dev/search) 

  

 

 

## Datastar Blog

Try category filtering and load-more pagination without a full page reload.

 

 [Blog](https://craft-kit.dev/blog) 

  

 

## Datastar Map

Filter locations and explore them on an interactive Leaflet map.

 

 [Map](https://craft-kit.dev/map) 

  

 

## Datastar Search

Search Craft content and update the results as you type.

 

 [Search](https://craft-kit.dev/search) 

  

 

## Why Craft Kit?

Read about the starter kit’s approach, toolchain and reusable examples.

 

 [Why Craft Kit](https://craft-kit.dev/why-craft-kit) 

  

 

       

 

 

 

 

 [Generated with AI](https://craft-kit.dev/uploads/transforms/_1600xAUTO_crop_center-center_90_none_ns/builder-matrix-blocks.png?v=1794754555) [Generated with AI](https://craft-kit.dev/uploads/transforms/_1600xAUTO_crop_center-center_90_none_ns/builder-ckeditor-flow.png?v=1794754555) [Generated with AI](https://craft-kit.dev/uploads/transforms/_1600xAUTO_crop_center-center_90_none_ns/builder-reusable-cards.png?v=1794754556) [Generated with AI](https://craft-kit.dev/uploads/transforms/_1600xAUTO_crop_center-center_90_none_ns/builder-accordion-folds.png?v=1794754557) 

  Open gallery (4 images)  

 

## How blocks fit together

- ⚡ 
    
    ### Defined fields
    
     Each block type has fields suited to its content, such as text, images or links.
- 🧱 
    
    ### Shared templates
    
     One Twig template per block keeps its markup in one place.
- 🎨 
    
    ### A shared container
    
     Content uses one width; the outer wrapper controls backgrounds and spacing.
- 🛠️ 
    
    ### Editor-controlled order
    
     Arrange the available blocks in Craft without changing the page template.
 
 

## CKEditor: compose the content

Keep the story flowing. Add structure where it helps.

In a long-form article, an image, a supporting detail or a related card belongs between paragraphs. CKEditor lets editors place those components directly in their text, using the same Twig templates as the Matrix blocks above.

  ![Craft control panel showing reusable components embedded in a CKEditor rich-text field.](https://craft-kit.dev/uploads/transforms/_768xAUTO_crop_center-center_85_none_ns/487/CKEBuilder.jpeg?v=1794754558) 

An illustration can explain an idea without becoming a separate page section. Here it is part of the article, inside the existing text column.

  ![An open ivory folio with paragraph-like grooves and inset orange and graphite components.](https://craft-kit.dev/uploads/transforms/_768xAUTO_crop_center-center_85_none_ns/2526/builder-ckeditor-flow.jpeg?v=1794754556)Generated with AI Components embedded in the flow of a story. — © AI-generated illustration for Craft Kit  

Supporting details can stay close to the paragraph they explain. Open an item to see what changes between the two rendering contexts.

   What changes inside CKEditor?  

The block is part of the rich-text flow rather than a separate full-width section. It uses the inline wrapper and inherits the existing content width.

 

  Are these different components?  

No. Matrix and CKEditor use the same block templates. The rendering context selects the wrapper, spacing and container behavior.

 

 

 

A small set of related examples can follow the text without introducing another page container.

 

## Datastar Blog

Try category filtering and load more posts without a full page reload.

 

 [Read more](https://craft-kit.dev/blog) 

  

## Datastar Map

Explore locations with filters, map markers and clustering.

 

 [Read more](https://craft-kit.dev/map) 

  

 

##  Make these blocks your own. 

Explore the Twig templates, adapt the fields and bring your own design. The starter kit and all demo examples are available on GitHub.

 

 [👉 Download Craft Kit](https://github.com/handplant/craftcms-lazy-starter-kit)
