Reputation: 163
I want some of the $GLOBALS['TYPO3_CONF_VARS']
values (namely, those of the Mail API) to be site-specific. After reading Configuration Overview, Site Handling, and GLOBALS - TYPO3_CONF_VARS, I'm still not sure how would it be an idiomatic way to do this.
Also, I'm using helhum/typo3-config-handling for the TYPO3 configuration. The idea is basically having the same functionality that we have with the contexts
(i.e having prod.settings.yaml
and dev.settings.yaml
load different values) but with sites, e.g. I want to have a different $GLOBALS[‘TYPO3_CONF_VARS’]['MAIL']['defaultMailFromAddress']
value wether if I'm in one of my sites or another.
I actually don't know if this is possible to do. Maybe these are thought to be that, just global, and I have to come up with a more ad-hoc solution. E.g. changing the $GLOBALS[‘TYPO3_CONF_VARS’]
array beforehand every time some process that accesses it.
Thanks a lot in advance!
Upvotes: 1
Views: 777
Reputation: 10800
You can access Environment variables for domain specific configuration.
Or you use conditions in PHP.
Anyway you need to make your assignments in typo3conf/AdditionalConfiguration.php
as all non constant values might get overwritten in typo3conf/LocalConfigurathion.php
.
Upvotes: 1