feat: site settings are edited in the backend, per environment

The constants of the sites become editable in Site Management >
Settings (admins only in TYPO3 13.4). settings.definitions.yaml of the
set ep/theme defines all 116 constants plus googleTagManagerId, with the
labels and categories of their constant editor annotations and today's
constants.typoscript values as defaults. Every setting is a string,
yes/no ones with a select of exactly '0' and '1': a bool setting would
hand '' instead of '0' to TypoScript.

config/sites/*/settings.yaml become shared files on the server and leave
git, like settings.php: production is leading, so backend edits survive
deploys, and each environment keeps its own values. Nine settings nobody
reads (twitterUrl, vimeoUrl, cookiefirstKey, ...) were dropped locally;
on production they stay in the seeded files until removed there.

deploy:check:site-settings aborts before anything else touches the
server if one of the shared files is missing or empty: deploy:shared
would create it empty, silently resetting that site to the defaults.

Rollout, after the site set is live: seed the shared files from the
live release once, then deploy:
  cd <deploy_path> && for f in current/config/sites/*/settings.yaml; do
    mkdir -p "shared/${f#current/}" && rmdir "shared/${f#current/}" &&
    cp -p "$f" "shared/${f#current/}"; done

Verified locally: the resolved setup of 43 pages is unchanged and only
the nine unused constants are gone (switched state); the root template
state is unchanged; all 1912 frontend URLs are identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
frommeandClaude Opus 5.5 committed 2026-10-27 12:05:23 +01:00
1 parent 26a7d5f78a
commit 863dd9de1a
11 files changed
+665 -600

No files matched your search

-44
View File
@@ -1,44 +0,0 @@
# Formerly the constants of the root TypoScript template (sys_template:31)
plugin:
tx_epproducts:
settings:
citiesStoragePid: '2401'
myEpUrl: 'https://my.semesterende-skireisen.de'
productsStoragePid: '2396'
regionsStoragePid: '2400'
tx_eptheme:
settings:
bpnBookingUrlTemplateCode: ser
businessHoursTime: '09:00 - Nov.-März bis 17:30 / Apr.-Okt. bis 16:00'
canonicalBaseUrl: 'https://www.semesterende-skireisen.de'
contactFormToEmail: [email protected]
contactFormToName: SER
cookieFirstKey: 28ea9183-0788-47c2-9409-c53ca35ba6c6
cookieFirstScriptUrl: 'https://consent.cookiefirst.com/sites/semesterende-skireisen.de-28ea9183-0788-47c2-9409-c53ca35ba6c6/consent.js'
dataProtectionPageUid: '2450'
defaultAjaxUid: '2690'
defaultHomeUid: '2395'
facebookUrl: 'https://de-de.facebook.com/semesterende/'
faviconAppTitle: Semesterende-Skireisen
faviconPath: fileadmin/user_upload/favicon/ser
footerNavPid: '2501'
globalConceptCode: ser
googleSiteVerification: 0jMRD7gyin91YMjbIIvZxUe-nYWqQaN21ftCkvQGuj8
googleTagManagerId: GTM-MNKDKL9
hideSearchbar: '1'
instagramUrl: 'https://www.instagram.com/semesterendeskireisen/'
legalNoticePageUid: '2449'
logoImage: fileadmin/user_upload/allgemein/Logos/logo_ser_ep.svg
mainNavPid: '2395'
mainSitePid: '9'
mapApiKey: 596ab05782eb426fb41a014fff1be731
mapTileUrl: 'https://api-eu.geoapify.com/v1/tile/osm-bright/{z}/{x}/{y}.png'
mobileNavPid: '2395'
myEpPageUid: 'https://my.semesterende-skireisen.de'
phoneNumber: '0221 - 272 276 41'
skipassPageUid: '2427'
termsAndConditionsPageUid: ''
themekey: ser
whatsApp: ''
whatsAppNumberLink: ''
youtubeUrl: 'https://www.youtube.com/channel/UCcRQeQcARPl6qvYhRV5Verg'