schriner/additional-site-conditions

Additional Site Conditions for TYPO3.

Installs: 1 516

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v0.3.0 2023-12-16 14:14 UTC

This package is auto-updated.

Last update: 2024-02-16 14:36:42 UTC


README

Additional site conditions for the site yml.

Installation

Simply install the extension with Composer or the Extension Manager.

composer require schriner/additional-site-conditions

Usage

Currently implemented:

indpEnv.get

Use to get the value of a GeneralUtility::getIndpEnv() call.

This is useful e.g. if a site is called by a different hostname in a local context and can't resolve it's true hostname.

Usage:

baseVariants:
  - base: https://foo-bar/
    condition: indpEnv.get("HTTP_HOST") == "foo-bar"