Demo: Diese Website ist eine Demo für fluid – keine offizielle Website von REDAXO. Operated by KLXM Crossmedia

fluid

A project with fluid

Editing directly on the website: add fluid, set up the demo, build your own blocks.

In development: REDAXO 6 is being built in the 6.x branch of redaxo/core. The examples reflect the state of November 2026 – names and details may still change before the release.

fluid is an AddOn for REDAXO 6 and not on Packagist yet. Composer fetches it – like YForm 6 – directly from GitHub. YForm is optional; without it only forms, data lists and the inbox are missing.

Add fluid

Terminal
composer config repositories.yform '{"type": "vcs", "url": "https://github.com/yakamara/yform", "no-api": true}'
composer config repositories.navigation_array '{"type": "vcs", "url": "https://github.com/KLXM/navigation_array", "no-api": true}'
composer config repositories.fluid '{"type": "vcs", "url": "https://github.com/KLXM/fluid", "no-api": true}'
composer require yakamara/yform:6.x-dev@dev klxm/fluid:*@dev
php bin/console migrate

Start with the demo

Alternatively use “First steps” on the website.

Terminal
# Demo-Inhalte mit Bildern und Design „REDAXO · Blau“ (nur in einer leeren Installation)
php bin/console fluid:demo --set=redaxo6 --media --design=redaxo

A block of your own

Fields as attributes like in any core module, output in output(). Backend form, editing on the website and preview come from fluid.

src/Block/Teaser.php PHP
<?php

namespace Project\Block;

use Klxm\Fluid\InlineStyle;
use Klxm\Fluid\Field\AsBlock;
use Klxm\Fluid\Field\Link;
use Klxm\Fluid\Kit\Fluid\FluidBlock;
use Override;
use Redaxo\Core\Content\AsModule;
use Redaxo\Core\Form\Field\{Text, Textarea};

use function Redaxo\Core\View\escape;

/**
 * Eigener Block im Projekt – mit den Feldern des Cores (ohne Ergänzungen von fluid) und Link, einem Feld nur von fluid.
 * Die Ausgabe nutzt die Hilfen des Kits (Klassen wrap, card, btn) – das Kit selbst bleibt unverändert.
 */
#[AsModule('fluid.teaser', 'Teaser (Projekt)')]
#[AsBlock(icon: 'star', group: 'Inhalt', nestable: true, help: 'Beispiel für einen eigenen Block im Projekt.')]
final class Teaser extends FluidBlock
{
    #[Text('Überschrift', required: true, maxLength: 80)]
    public string $title = '';

    #[Textarea('Text', rows: 3)]
    public string $text = '';

    #[Link('Link')]
    public string $link = '';

    #[Override]
    public function output(): string
    {
        // keine style-Attribute (CSP): InlineStyle vergibt eine Klasse, die Regel steht im <style nonce> der Seite
        return '<div class="wrap"><div class="card ' . InlineStyle::class('padding:var(--f-s-l)') . '">'
            . '<h2 class="h3"' . $this->edit('title') . '>' . escape($this->title) . '</h2>'
            . '<p' . $this->edit('text', 'lines') . '>' . nl2br(escape($this->text), false) . '</p>'
            . ('' !== trim($this->link) ? '<a class="btn btn--primary" ' . \fluid_link_attrs($this->link) . '>Mehr</a>' : '')
            . '</div></div>';
    }
}

Mit $this->edit() wird ein Feld direkt auf der Website bearbeitbar.

Try it

This site is built with REDAXO 6 and fluid.

Sign in, tap “Edit” – and change every text, every image and the whole design right here.