Book Moderation Sync
No security coverage
Book ecosystem
Book Moderation Sync Module
The Book Moderation Sync module synchronizes moderation states between books and their children (chapters or pages) in Drupal. It leverages the book and content_moderation modules to manage relationships and moderation states effectively.
Features
- Moderation State Synchronization: When a book's moderation state is updated (e.g., published or archived), all its children inherit the same state.
- Child Deletion: Option to automatically delete child nodes when a book is deleted.
Usage
Moderation State Synchronization
- Create a book and add chapters or pages as children.
- Update the moderation state of the book (e.g., set it to "Published").
- All child nodes will automatically inherit the same moderation state.
Child Deletion
- Enable the
delete_children_on_book_deleteoption in the module's configuration. - Delete a book.
- All associated child nodes will be automatically deleted.
Configuration
The module provides a configuration option:
- Delete children when a book is deleted: If enabled, child nodes are deleted when their parent book is deleted.
Dependencies
- Book: Manages the hierarchical structure of books and their children.
- Content Moderation: Handles moderation states for nodes.
Technical Details
The module uses the following services and methods:
- BookManager: Manages book-related operations, such as adding nodes to a book.
- BookOutlineStorage: Handles the storage of book relationships.
- ModerationInformation: Provides moderation state information for entities.
Links
License
This project is licensed under the GPLv2 license.
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
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | Book Moderation Sync 1.0.0 synchronizes moderation states between books and their child nodes, ensuring consistent content workflows. | Jan 9, 2025 | ||
| 1.0.0-beta6 | Pre-release | Book Moderation Sync 1.0.0-beta6 ensures synchronization of moderation states between book nodes and their child nodes. This release fixes permission and workflow configuration issues, improves code quality, and adds comprehensive functional tests. | Jan 8, 2025 | ||
| 1.0.0-beta5 | Pre-release | Book Moderation Sync 1.0.0-beta5 introduces code refactoring for better performance and maintainability, along with comprehensive functional tests. Upgrade now for improved reliability and enhanced logging! | Jan 8, 2025 | ||
| 1.0.0-beta4 | Pre-release | Book Moderation Sync 1.0.0-beta4 adds a configuration link in the modules page and introduces an install file to handle initial setup. Upgrade now for easier configuration management and improved schema handling! | Jan 8, 2025 | ||
| 1.0.0-beta3 | Pre-release | Book Moderation Sync 1.0.0-beta3 introduces a new configuration option to automatically delete child nodes when a book is deleted. This release also includes improved logging for better error tracking and code refactoring for enhanced maintainability. | Jan 7, 2025 | ||
| 1.0.x-dev | Dev | Jan 6, 2025 | |||
| 1.0.0-beta2 | Pre-release | Jan 6, 2025 | |||
| 1.0.0-beta1 | Pre-release | Jan 6, 2025 | |||
| 1.0.0-alpha2 | Pre-release | Synchronizes moderation states between books and their children in Drupal 10/11. Automates workflow consistency for editorial teams. | Jan 5, 2025 | ||
| 1.0.0-alpha1 | Pre-release | Book Moderation Sync 1.0-alpha1: Synchronizes moderation states between books and their children in Drupal 10/11. Automates workflow consistency for editorial teams. | Jan 5, 2025 |