This module allows for saving of all nodes for a specific content type or for all types.

Features

  • Admin form which uses Batch API to save all nodes.
  • Drush command which also triggers the Batch API process.
  • Setting for saving any translations attached to node.
  • Setting for regenerating alias on nodes saved.
  • Setting for creating new revision on nodes saved.
  • Configure chunk size for the number of nodes to process per batch process.

Requirements

No major requirements, but leverages core nodes and pathauto.

Install/Usage

composer require drupal/save_all_nodes
drush en save_all_nodes
  1. Install and enable module like any other contrib module.
  2. Configure settings for module:
    /admin/config/development/save-all-nodes/settings
  3. Once configured, run batch process from here:
    /admin/config/development/save-all-nodes
  4. Can also run batch process via Drush command as well. See below for more information.

Drush Command

Replace {content_type} with machine name for the node content type.
Like 'page' for Basic page content type.

drush save-all-nodes <content-type>

Eg.

drush save-all-nodes page

Defaults to page if no content type is provided.

Project information

Releases