There are a couple of settings you can override in your settings.php files for your sites. Some of these options allow you to re-use existing configuration between multiple sites while only adjusting a minimum set of options per site.
Enable or disable a Flow
To enable or disable a certain Flow you can use the following setting:
$config["cms_content_sync.flow.FLOW_MACHINE_NAME"]["status"] = TRUE / FALSE;
Just replace the FLOW_MACHINE_NAME with the machine name of the Flow configuration in your site(s).
Push/Pull different languages per site
You can override what languages are pushed or pulled per site even when reusing the same Flow configuration across those sites:
$config["cms_content_sync.flow.FLOW_MACHINE_NAME"]["simple_settings"]["languages"] = ["en", "de"];
Just replace the FLOW_MACHINE_NAME with the machine name of the Flow configuration in your site(s).
Request timeout
If you want to increase or decrease the request timeout from your site to the Sync Core, you can adjust it with the following setting:
$config['cms_content_sync.sync_core_request_timeout'] = 30;
Overwriting configurations
The base url and site name can be overwritten in your settings.php file. Please re-register the site after changing any of these values.
$settings["cms_content_sync_base_url"] = "http://example.com"; $settings["cms_content_sync_site_name"] = "My site name";
Pulling content by term per site
If you want to route content to different sites based on assigned taxonomy terms, you can share the same configuration across all sites and simply adapt the term filter per site using each site’s settings.php file.
In this example, a vocabulary site includes a term with UUID 00000000-0000-0000-0000-000000000000 that the current site should pull content for.
We’ll apply a filter to the article node bundle where the field field_site references this term. If the term is not assigned through this field, the content will not be pulled into the current site.
Once the configuration is added to the settings.php file, you only need to update the UUID for each site to match the relevant term(s). The array structure also supports multiple terms, which are combined with an OR condition, meaning if any of the terms are found, the content will be included.
$config["cms_content_sync.flow.FLOW_MACHINE_NAME"]["simple_settings"]["entityTypeSettings"]["node"]["perBundle"]["article"]["filters"] = [
[
"type" => "includes-reference",
"fieldMachineName" => "field_site",
"values" => [
"namespaceMachineName" => "taxonomy_term",
"machineName" => "site",
"remoteUuid" => "00000000-0000-0000-0000-000000000000",
],
]
];