Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Default Content Extras

Security covered Under active development 70 sites

Default Content Extra adds experimental features to the Default Content module, such as path alias support for nodes and taxonomy terms, and automatic cleanup of default users and workspaces during content export and import. This module aims to provide temporary solutions for content migration challenges in Drupal 8.

Default Content Extra is a Drupal 8 only module that adds "extra", experimental
functionality to the Default Content for D8 module (but is not affiliated with the module other than it is a required dependency.)

Current features include:

  • Path alias support for nodes and taxonomy term entities - see #2710421: Export URL alias configuration for nodes
  • Automatically delete users 0 and 1 after exporting entities using drush default-content-export-references as these can cause errors when installing a site with default content.
  • Delete stage and live workspaces on import to fix duplicate workspace issues.

To use the module, simply enable it and export your content as you would with
the Default Content commands such as:

drush dcer node --folder=relative_path_from_docroot

Assuming the "Path aliases" functionality is enabled, exported content will contain additional data that looks like:

"path": {
    "alias": "\/myawesomepath"
}

Configuration for enabling the above features is available at admin/config/content/default-content-extra. All features are enabled by default.

Why Another Module?

There is an issue in the Default Content issue queue and it was rightfully postponed: #2710421: Export URL alias configuration for nodes. With the Workflow Initiative still underway, there needs to be a temporary solution to solve some of the Default Content challenges quickly as moving content around in Drupal 8 is a challenging issue.

Ask your assistant about Default Content Extras

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.0-beta11 Pre-release 8–10 Mar 27, 2023