#92042Extend site language
Description
Hi,
to extend the site language with an own field is possible like it is explained here
Add a file Configuration\SiteConfiguration\Overrides\sites.php and inside
// Configure a new simple required input field to site
$GLOBALS['SiteConfiguration']['site_language']['columns']['myNewField'] = [
'label' => 'A new custom field',
'config' => [
'type' => 'input',
],
];
// And add it to showitem
$GLOBALS['SiteConfiguration']['site_language']['types']['1']['showitem'] = str_replace(
'flag,',
'myNewField, flag,',
$GLOBALS['SiteConfiguration']['site_language']['types']['1']['showitem']
);
But there is no way to read the value of the myNewField.
For the site configuration there is a public method getConfiguration(). It would be great to have the same for the SiteLanguage.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.