perspeqtive / sulu-bulk-move-bundle
Moves all children of one structure element to another
Package info
github.com/perspeqtive/sulu-bulk-move-bundle
Type:sulu-bundle
pkg:composer/perspeqtive/sulu-bulk-move-bundle
Requires
- php: ^8.2
- sulu/sulu: ^2.6
Requires (Dev)
- jackalope/jackalope-doctrine-dbal: ^1.3.4 || ^2.0
- php-cs-fixer/shim: ^3.75
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^12
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Sulu Bulk Move Bundle moves all child pages from one Sulu navigation node to another. Perfect for reorganizing whole parts of your page tree in one command.
🛠️ Installation
Install the bundle via composer:
composer require perspeqtive/sulu-bulk-move-bundle
Enable the bundle
Add the bundle to your config/bundles.php:
return [ // ... PERSPEQTIVE\SuluBulkMoveBundle\PERSPEQTIVESuluBulkMoveBundle::class => ['all' => true], ];
Usage
Run the bulk move via Symfony command:
bin/console perspeqtive:sulu:bulk-move <source-uuid> <target-uuid> <locale>
| parameter | description |
|---|---|
| source-uuid | UUID of the parent page whose children you want to move |
| target-uuid | UUID of the target parent page |
| locale | The page locale (e.g. de, en) |
Example:
bin/console perspeqtive:sulu:bulk-move 123e4567-e89b-12d3-a456-426614174000 123e4567-e89b-12d3-a456-426614174999 de
👩🍳 Contribution
Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and adapt the documentation.