Repository navigation
Conversation
4288b6f to
7fdd8d3
Compare
c1b7435 to
f215454
Compare
|
@buchmarv I tested it yesterday with a fresh installation of TYPO3 v14.3.12, where siteDataPath = “config/analytics”, and it works perfectly. Have you perhaps included a ‘/’ at the very beginning? I’ve also added an import to the settings.yaml file with: imports:
|
|
|
andreaskienast
left a comment
There was a problem hiding this comment.
The PR says "Allow a separate file", and the README.md states this:
By default, the extension writes sensitive data (credentials, tracking code and API keys) into
config/sites/<identifier>/settings.yamlof each site. Do not commit this file to the repository.
Why don't we create the "separate file" directly when we register a new site?
Set siteDataPath to write the site data into a separate file. The settings.yaml of each site must import this file. The extension always reads the site data from the site settings. Without siteDataPath, the extension uses settings.yaml as before.
- Read siteDataPath only from the extension configuration. - Use the ExtensionConfiguration API and read the path one time. - Remove the unused constant KEYS. - Let get() return the value of any type. Add getString(). - Use the Locking API of TYPO3 for settings.yaml and the separate file. - Recommend the separate file in the documentation.
With siteDataPath, the extension reads the data from the separate file. The settings.yaml does not need an import. The settings editor of the core wrote the imported values into settings.yaml and removed the import. The values in settings.yaml then had priority over the file. Until the file contains values of the extension, the extension reads the site settings. The first write copies the values of the extension into the file.
Each write replaced the file and set the default permissions. A restricted file became readable for the group again.
Remove the hints about imports. The extension does not use imports.
e5832f3 to
25a7e6a
Compare
|
@buchmarv + @andreaskienast : You are right: the error message was not clear, and the import was an unnecessary step. I removed the import. With siteDataPath, the extension now reads the site data directly from |

Set
siteDataPathto write the site data into a separate file:<siteDataPath>/<identifier>.yaml.With
siteDataPath:settings.yamldoes not contain the site data. You can commit it.Without
siteDataPath, the extension usessettings.yamlas before.