Acquia Content Hub clients are used for syndication and personalization. The following example configurations explain how you can configure publisher and subscriber websites to complete those tasks.
The following example uses three environments: dev
, stage
and prod
with two websites: domaina.com
and domainb.com
.
For the websites to all work together with Acquia Content Hub, register six clients, one for each environment and website:
You can register all six Acquia Content Hub clients from a single website, if you want to generate the registrations simultaneously, by performing the following steps:
domaina.com
website, using
domainacomdev
as the client name, ensuring you save the client name
and the generated origin UUID (universally unique identifier) for later.drush ach-disconnect
on the website to remove the client name
and origin config values.domainacomstage
,
ensuring you save the client name and the generated origin UUID.dev
client name and origin
(from step 1 in this example) back to the configuration for this website
using drush config-set
.In this example, here are three environments: dev
, stage
and prod
with one website, domaina.com
. To work with Acquia Content Hub, register
six clients, one for each environment and website:
You can register all six Acquia Content Hub clients from a single website, if you want to generate the registrations simultaneously, by performing the same procedure described in Configuring for syndication.
If you reset one of your Acquia Content Hub installations, or your UUIDs are lost, retrieve the UUIDs with a Drush command. Run the following command from the command line on a server running a Drupal 9 or later application which is already connected to Acquia Content Hub:
drush ev '$c = \Drupal::getContainer()->get("acquia_contenthub.acquia_contenthub_subscription");print_r($c->getSettings()->getClients());'