schriner/additional-site-conditions

Additional Site Conditions for TYPO3.

v0.2.2 2020-11-04 09:19 UTC

This package is auto-updated.

Last update: 2021-04-13 08:10:02 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"