Extends the base variants condition with current host.

Installs: 13 321

Dependents: 0

Suggesters: 0

Security: 0

Stars: 20

Watchers: 9

Forks: 1

Open Issues: 0


1.1.0 2021-01-09 20:20 UTC

This package is auto-updated.

Last update: 2021-10-09 22:00:30 UTC


This extension allows to configure a base variant in TYPO3s Site Configuration depending on the current Host.


  • TYPO3 9 LTS, 10 LTS or 11.0

Installation and Setup

Install the extension via your preferred way. No further setup is required. The extension works out of the box.

What it does

The extension adds a variable host to the expression language for the Site Configuration. This allows configuring multiple domains for the same root page.


base: 'https://main-domain.tld/'
    base: 'https://another-domain.tld/'
    condition: 'host == "another-domain.tld"'
    base: 'http://%env(DYNAMIC_DOMAIN)%/'
    condition: 'host == "%env(DYNAMIC_DOMAIN)%"'

Conditions can also be combined:

base: 'https://main-domain.tld/'
    base: 'https://local1.local/'
    condition: 'applicationContext == "Development" && host == "local1.local"'
    base: 'https://local2.local/'
    condition: 'applicationContext == "Development" && host == "local2.local"'

Made by b13 with ♥

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.