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

fluid

Clean addresses – for pages and data

Pages get their addresses from yrewrite. For records you decide which address applies – as a class or in the backend.

Who does what

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

Pages: yrewrite

Addresses, domains, language prefix, redirects, sitemap.xml and robots.txt come from yrewrite. The prefix of the preferred language can be hidden in the domain – it is then /leistungen/ instead of /de/leistungen/. When an address changes, yrewrite redirects the old one if you like (setting of the domain).

SEO on the website

Title, description, image, “do not index”, canonical and own address are in the page settings on the website. fluid writes to yrewrite’s fields, yrewrite’s permissions apply. yrewrite stores them per page, so they apply to all languages.

Records

fluid does not rewrite addresses itself. A record has the address of its page with ?eintrag=5. If a rewriter knows nicer addresses, you tell fluid – menu, links, page head, sitemap and editor then use them everywhere.

Provisional: These schemas are provisional: they apply until there is a general solution for REDAXO 6 – preferably the URL addon. fluid will then switch to it.

Set the addresses of records

Per table, if you like per page: the key of a URL profile or a pattern with a trigger.

src/Project.php PHP
use Klxm\Fluid\RecordUrl\RecordUrlConfig;
use Klxm\Fluid\RecordUrl\RecordUrlPattern;
use Klxm\Fluid\RecordUrl\RecordUrls;

// src/Project.php – in configure()
RecordUrls::$config = new RecordUrlConfig(tables: [
    'rex_yf_project' => 'project-id',                                        // URL-Profil
    'rex_yf_news' => new RecordUrlPattern('{page}/news/{field:url}', 'news-id'),   // Trigger im Pfad
    'rex_yf_project@12' => 'reference-id',                                   // nur auf Seite 12
]);

Placeholders: {page}, {id}, {slug} and {field:name}. A rewriter has to resolve the address; there is no URL addon for REDAXO 6 yet.

As your own class

For everything else: url() provides the address, current() the record of the request.

src/EventUrl.php PHP
use Klxm\Fluid\RecordUrl\AsFluidRecordUrl;
use Klxm\Fluid\RecordUrl\RecordRef;
use Klxm\Fluid\RecordUrl\RecordUrl;
use Redaxo\Core\Content\Article;

#[AsFluidRecordUrl('rex_yf_event')]
final class EventUrl implements RecordUrl
{
    /** Adresse des Datensatzes; null = Standard */
    public function url(RecordRef $record): ?string
    {
        return '/termine/' . $record->field('slug');
    }

    /** Datensatz, den der Rewriter für diese Anfrage gefunden hat */
    public function current(Article $article): ?int
    {
        return MyRewriter::recordId();
    }
}

Your own schemas for the backend

A schema is a class with fields of the core. It can then be chosen under fluid → Addresses.

src/ProductSchema.php PHP
use Klxm\Fluid\RecordUrl\AsFluidUrlSchema;
use Klxm\Fluid\RecordUrl\RecordUrl;
use Klxm\Fluid\RecordUrl\RecordUrlPattern;
use Klxm\Fluid\RecordUrl\RecordUrlSchema;
use Redaxo\Core\Form\Field\Text;

// steht danach im Backend unter fluid → Adressen zur Wahl, mit diesen Feldern
#[AsFluidUrlSchema('shop.product', 'Shop-Artikel')]
final class ProductSchema implements RecordUrlSchema
{
    #[Text('Trigger', required: true)]
    public string $trigger = 'produkt';

    public function recordUrl(): RecordUrl
    {
        return new RecordUrlPattern('{page}/' . $this->trigger . '/{slug}-{id}', 'product-id');
    }
}

Entries from code win, the backend only shows them.

Services and tags in the page head

Services answer before the pages. Tags with the same key replace the existing ones.

src/Calendar.php PHP
use Klxm\Fluid\ExtensionPoint\PageMetaResolved;
use Klxm\Fluid\Http\AsFluidEndpoint;
use Klxm\Fluid\Http\Endpoints;
use Klxm\Fluid\Seo\PageMeta;
use Redaxo\Core\ExtensionPoint\AsExtension;

final class Calendar
{
    // Dienst mit eigener Adresse, antwortet vor den Seiten
    #[AsFluidEndpoint('/termine.ics')]
    public static function ics(): void
    {
        Endpoints::respond(self::build(), 'text/calendar; charset=utf-8');
    }

    // eigener Tag im Seitenkopf; auch YREWRITE_SEO_TAGS wirkt hier
    #[AsExtension]
    public static function head(PageMetaResolved $ep): PageMeta
    {
        $ep->subject->tags['calendar'] = '<link rel="alternate" type="text/calendar" href="/termine.ics">';

        return $ep->subject;
    }
}

yrewrite’s extension point YREWRITE_SEO_TAGS also applies to fluid’s page head.

More for yrewrite: routes

What yrewrite does not include, the addon routes adds: GEO (llms.txt, Markdown versions, rules for AI crawlers), short links, redirects with wildcards, 404 log, IndexNow and advice for editors. It knows nothing about fluid and runs in every REDAXO 6 project with yrewrite.

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.