After you have installed the Content Hub client modules, configure the module, user permissions to administer and use the service, and then use the Drupal admin interface to configure them to connect your website to the Content Hub repository.
The Content Hub modules must connect to the Content Hub service to publish from and subscribe to content.
Use the following steps to obtain and enter the information you need for the Personalization Credential section.
Open a new browser tab.
Sign in to Personalization using an account with administrative permissions.
Click the Configure tab.
Click the Customer Data link. If you are a Personalization - Standard user, click Content Hub Admin User.
Click the customer name with the Content Hub settings you want to inspect.
In the Content Hub Module section, note the following values:
Notes
PERSONALIZATIONSITE2
before, enter PERSONALIZATIONSITE3
.ach-connect
(Drupal 9) requires the same
inputs, allowing you to register a client using Drush instead of in
the form.In the Drupal administration menu, click Configuration >
Web services and then click the Acquia Content Hub link
(http://[site_URL]/admin/config/services/acquia-contenthub
).
Update the Content Hub configuration values based on the matching values from the Personalization interface.
Click Save Configuration.
Repeat the steps for each new website or environment to register new clients with Content Hub.
Store all the settings found in the configuration
acquia_contenthub.admin_settings
as a configuration split, or set them in the
settings.php
file. See the example files for suggestions.
Download and configure a
per-environment settings
file to ensure the data from your production
environment isn’t corrupted by data from non-production environments.
To check this using drush, run the following command on each site in each environment:
drush cget acquia_contenthub.admin_settings --include-overridden
Note
API and secret keys set in the production environment match the API and secret keys stored in non-production environments.
Your website is now connected to the Content Hub content repository, and can begin to share content with your other connected websites.
For examples using more than one website for publication and syndication, see Registering multiple Acquia Content Hub clients.
You can use the following commands to update Content Hub:
drush upc drupal
composer require drupal/acquia_contenthub:~1.0
drush cr
To manage Content Hub settings (including the values on the Connections controlling your Content Hub assignment), signed-in users must have the appropriate permissions. To set the access permissions for Content Hub:
In the admin menu, go to People, and then click the Permissions tab.
Assign the appropriate permissions to your website’s roles from the following list:
By default, all users with the Administrator role have these permissions.
Click Save permissions to save your permission changes.
Next, see Sharing content to learn how to use the Entity Configuration and Settings tabs to configure how you share or publish content from your website to Content Hub, where the content is discoverable by other members of your content network.
Administrators can disconnect a website from Content Hub. You can reconnect the website at a later time. Any content already published to the hub from the website you are disconnecting will remain on the hub, but it becomes orphaned. Reconnecting your website to the hub won’t reconnect the copy of the content on the hub to its original source.
Depending on your installed version of Drupal, use the one of the following methods to disconnect your website from Content Hub: