From 7386a0601ae7a2600336126eaab3ecdb076ea04a Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 1 Feb 2021 09:36:44 +0100 Subject: [PATCH] Allow configuring API key on site level --- .../SiteConfiguration/Overrides/sites.php | 25 +++++++++++++++++++ Resources/Private/Language/locallang_be.xlf | 14 +++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Configuration/SiteConfiguration/Overrides/sites.php create mode 100644 Resources/Private/Language/locallang_be.xlf diff --git a/Configuration/SiteConfiguration/Overrides/sites.php b/Configuration/SiteConfiguration/Overrides/sites.php new file mode 100644 index 0000000..6dcc6ed --- /dev/null +++ b/Configuration/SiteConfiguration/Overrides/sites.php @@ -0,0 +1,25 @@ + [ + 'thuecat_api_key' => [ + 'label' => $languagePath . 'thuecat_api_key', + 'config' => [ + 'type' => 'input', + ], + ], + ], + 'types' => [ + '0' => [ + 'showitem' => $GLOBALS['SiteConfiguration']['site']['types']['0']['showitem'] + . ', ' . implode(',', [ + '--div--;' . $languagePath . 'div.thuecat', + 'thuecat_api_key', + ]), + ], + ], + ]); +})('thuecat', 'site'); diff --git a/Resources/Private/Language/locallang_be.xlf b/Resources/Private/Language/locallang_be.xlf new file mode 100644 index 0000000..9a52e1e --- /dev/null +++ b/Resources/Private/Language/locallang_be.xlf @@ -0,0 +1,14 @@ + + + +
+ + + ThüCAT + + + API Key + + + +