Content Hub

Exporting content from a Content Hub publisher

Important

Content Hub 2.x will reach end-of-life on December 31, 2024. Acquia recommends that you update your Content Hub version to Content Hub 3.x by using the composer require instructions available on the acquia_contenthub project page.

Use the following checklist to export content from a publisher:

S.No.

Task

1

Configure your Drupal site as a Content Hub publisher

2

Create or update content on your publisher using standard Drupal processes

3

Add content to the export queue on the publisher

4

Process the export queue

Configuring your Drupal site as a publisher

To configure your Drupal site as a publisher:

  • Install Content Hub.
  • Enable the acquia_contenthub_publisher module through the Drupal admin interface.
    When activating the acquia_contenthub_publisher module on an existing Drupal site functioning as a Content Hub subscriber, only the content exclusive to that Drupal site can be published. However, the content that is imported from other publishers cannot be re-exported. Each entity is limited to having only one publisher.

Adding content changes to export queue

Automatic addition of content

By default, Content Hub automatically adds content changes to the export queue when the content is:

  • Created or updated

  • Flagged as published

    Draft or unpublished content is not automatically enqueued for export.

Manual export mode

Note

The manual export mode is available in Content Hub 3.5.0 and later.

With the manual export mode, you can control when to add content to export queue. For example, if you require multiple approvals before the syndication begins, you can use the manual export mode and prevent content changes from being automatically added to the export queue.

To enable the manual export mode:

  1. Go to Administration > Configuration > Acquia Content Hub.
  2. Select the Export tab.
  3. In the Export Control fieldset, enable the Enable manual export mode checkbox.
  4. Click Save Export Settings.

After the manual export mode is enabled, content changes are not automatically added to the export queue.

To manually enqueue content entities to the export queue:

  1. Go to Administration > Content > Acquia Content Hub Export Tracker.
  2. (Optional) Filter the view by title, UUID, entity type, or status.
  3. Add entities to the export queue:
    • To add a single row, click the Add to export queue button on the row.
    • To add multiple rows, select the checkboxes for the required rows, select the Add to export queue option from the Action dropdown, and then click Apply to selected items.

Note

Some entities cannot be added to the export queue directly. They are only exported when their parent entities are exported. The Content Hub Export Tracker view cannot override this behavior. For more information, see Eligible and ineligible entities.

Processing the export queue

The export queue is processed in the following ways:

To process the export queue asynchronously, Acquia recommends you to configure scheduled jobs. Additionally, you can set up the scheduled jobs to run on dedicated cron servers if your Drupal Cloud subscription provides such servers.

Purging the export queue

To clear the export queue on a publisher site:

  1. Go to Administration > Configuration > Web services > Acquia Content Hub.
  2. Click Export tab.
  3. When the queue has items, locate Purge existing queues within the Run Export Queue section.
  4. Click Purge to empty the export queue.

Excluding entities from export

The publisher exports all content by default. However, there might be a necessity to exclude specific types of content from export due to security concerns or other reasons. For more information, refer to Excluding entities from export.

Viewing completed exports using the Publisher’s Dashboard

To view completed exports using the Publisher’s Dashboard:

  • Navigate to the Publisher’s Dashboard interface.
  • Click Content.
  • Review the content on the Content page.
    The page displays the available content entities within the Content Hub service.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Acquia Help

Filter by product:

Content Hub common questions