Last reviewed: June 30, 2025

Import Content From Drupal


Pantheon Content Publisher can import content from an existing Drupal instance and convert them in Google Docs for further management with Content Publisher. This allows you to migrate the content from an existing Drupal site to a site using Content Publisher and Google Docs as a content authoring tool

How does this work?

We’ve attempted to simplify this process as much as possible for you.

  1. Configure Drupal to allow API exports
  2. Select whether or not you’d like to publish the content that is migrated
  3. Run the command to export the content.
  4. Each item exported is saved as a Google doc on Google Drive.

Migration Steps

  1. Enable the JSON API for the Drupal instance: This is the default configuration for Drupal, but this is important to double check incase they have been previously disabled. More details: https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module/api-overview
  2. Identify the Drupal endpoint URL: The PCX service needs the URL of the Drupal instance in order to properly connect and export the content.

NOTE: You will need the public URL for each content type that should be exported.

  1. PCC can use to get the initial results page of posts (e.g. https://example.com/jsonapi/node/article). But please note that the exact URL will depend on which entity type(s) you want to import.
  2. Content Publisher collection ID: In order to import the content to the correct collection you’ll need the collection ID (formerly site ID) where you plan to import the content. Posts are NOT going to be published automatically after importing, but they will be automatically connected to the site id provided.
  3. Run the import command: Put all of this information together to run the Drupal import process from the PCX CLI.
    1. The command below will run the import process for a single article.

$ pcc import drupal https://example.com/jsonapi/node/article siteid12345

  1. Note the URL and SITE ID will need to be replaced using the URL of the article or content type that you wish to import and the content publisher site id for the site you wish to publish too.
    • This command will need to be run for each content type that you wish to import.
  2. Accessing the content on Google Drive: The content will be available on Google drive in a folder created by Content Publisher, located XXXX. The folder’s name and a link to it will be printed in the console after a successful import. If you expect to collaborate with several users on these items, we recommend to move these documents into the shared drive or folder where you’d like your users to collaborate on. .