medienbaecker / kirby-change-uuid
Change UUIDs of pages, files and users from the Kirby Panel
Package info
github.com/medienbaecker/kirby-change-uuid
Type:kirby-plugin
pkg:composer/medienbaecker/kirby-change-uuid
Requires
README
Change UUIDs of pages, files and users directly from the Kirby Panel.
Requirements
- Kirby 5+
Installation
Composer
composer require medienbaecker/kirby-change-uuid
Manual
Download and extract this repository to /site/plugins/kirby-change-uuid.
Permissions
By default, UUID changes are disabled for all users. You can enable them per user role, per blueprint, or globally.
Per user role
Enable UUID changes for an entire role:
# site/blueprints/users/admin.yml permissions: pages: changeUuid: true files: changeUuid: true
Note
The changeUuid permission must be set explicitly. Setting pages: true or "*": true won't affect it because Kirby's wildcard only covers core permissions, not ones added by plugins.
Per blueprint
Enable UUID changes for a specific page type:
# site/blueprints/pages/default.yml options: changeUuid: true
Or control it per user role:
options: changeUuid: admin: true "*": false
Global default
Enable UUID changes for all pages, files and users by default:
// site/config/config.php return [ 'medienbaecker.change-uuid.defaultPermission' => true, ];
After enabling it globally, you can still disable it for specific user roles or blueprints as shown above.
License
MIT