Minimally maintained. This module was built for one specific set of Drupal 7 sites and is no longer under active development. No new features are planned. Bug fixes may be committed if they arrive as a tested merge request. If you want to take the project over, open an issue.

MySQL/MariaDB only. Both the D7 source and the D11 target must use MySQL or MariaDB.

Imports content from a Drupal 7 site straight into Drupal 11, without the D7 → D8 → D9 → D10 → D11 migration path. You run the included export script on the D7 site, which writes XML files. Then you import those files on the D11 site with Drush.

What it imports

  • Vocabularies and taxonomy terms, with hierarchy, keeping term IDs
  • Content types and fields, created automatically from the exported data
  • Nodes, keeping node IDs
  • Files, keeping file IDs, with optional copying from the D7 files folder
  • URL aliases
  • Menus and menu links (D7 core menus map to their D11 names)
  • Webforms (Webform 7.x-4.x), with the optional d7_import_webform submodule

Not imported: users and revisions. Some complex field types need manual work. Content in D7's PHP filter format is imported as Full HTML with all PHP removed.

Getting started

composer require drupal/d7_import
drush en d7_import

On the D7 site, copy d7_export_script/export_content.php to the site root and run drush -l yoursite.com php-script export_content.php. On the D11 site, run drush d7-import:all /path/to/export/ --source-files=/path/to/d7/files.

There's also an import form at /admin/content/d7-import for small sites. It needs the restricted Run D7 content import permission. Use Drush for anything large, because the form can time out.

Field type mapping, troubleshooting and every Drush command are in the README.

Project information

Releases