How to extend/use the site language configuration with custom fields
Since #84581 extending the site configuration can be extended with own fields. Extending the
site is possible and a generic getter which can be used like
While extending the site config itself works for some types of values, it's often necessary to add fields to
site_language like a siteTitle, too. Extending the configuration works like a charm, so far.
How can I use the custom fields "on the website"?¶
A) How can I retrieve the value within TypoScript?¶
B) How can I retrieve the value within Fluid?¶
C) How can I retrieve the value within my own Class/Plugin/Controller?¶
From my perspective (by reading the code), that's actually not really possible.
Any suggestions, tipps, hints or even a plan how we can extend the core to make that possible would be nice. I can also help in coding if I get some mentoring in this area.
[TASK] Add full configuration to SiteLanguage::toArray
Make the full configuration of a SiteLanguage available. This is required
to get access to an extended site language configuration.
To be in sync to the Site object, the property attributes is renamed to
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Andreas Fernandez <email@example.com>
Reviewed-by: Josef Glatz <firstname.lastname@example.org>
Tested-by: Josef Glatz <email@example.com>
Reviewed-by: Anja Leichsenring <firstname.lastname@example.org>
Tested-by: Anja Leichsenring <email@example.com>
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Tested-by: Markus Klein <email@example.com>