This module provides a way to resave all nodes, either for a specific content type or for all types. It offers administrative settings to control whether translations are saved, aliases are regenerated, and new revisions are created, and can be run via the administration interface or a Drush command.
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
- Install and enable module like any other contrib module.
- Configure settings for module:
/admin/config/development/save-all-nodes/settings - Once configured, run batch process from here:
/admin/config/development/save-all-nodes - 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.
Ask your assistant about Save All Nodes
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
- node Drupal core
- pathauto Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.