proudnerds / pn-utilities
Backend tools for TYPO3: a list of pages that have not been changed for a while, and backend user management for non-admins.
Package info
github.com/proudnerds-typo3/pn_utilities
Type:typo3-cms-extension
pkg:composer/proudnerds/pn-utilities
Requires
- php: ^8.3
- proudnerds/pn-backend-manual: ^1.2
- typo3/cms-backend: ^14.3
- typo3/cms-core: ^14.3
- typo3/cms-extbase: ^14.3
- typo3/cms-fluid: ^14.3
Requires (Dev)
- typo3/testing-framework: ^9.7
Suggests
None
Provides
None
Conflicts
None
Replaces
- typo3-ter/pn_utilities: 14.3.2
README
Backend tools for TYPO3 14.3:
- Content > Tools lists the pages below the selected page whose properties and content elements have not been changed for a given number of days (default 182). Admins only.
- Administration > Backend users lets non-admins create, edit, disable and delete backend users, limited to the groups an admin has marked as assignable. New users set their own password through a link sent by mail.
pn:powermail:convertconverts legacy Powermail forms, read straight from the database tables, into ext:form*.form.yamldefinitions.
An editor manual in Dutch is registered as a dashboard widget through
pn_backend_manual;
it is also the most complete description of both modules:
Resources/Private/Manual/UtilitiesManual.md.
Installation
composer require proudnerds/pn-utilities
Configuration
Each module can be switched on or off in Admin > Settings > Extension Configuration > pn_utilities:
| Setting | Default | Effect |
|---|---|---|
stalePages |
on | Registers Content > Tools |
userManagement |
off | Registers Administration > Backend users and adds the field Assignable in user management to backend groups |
After switching userManagement on, update the database schema
(Analyze Database Structure in the Install Tool, or
typo3 database:updateschema).
User management
- Mark the groups that user managers may hand out as Assignable in user management (tab General of the backend group). A user who gets such a group gets all permissions of that group and its subgroups.
- Grant file operations (File operation permissions) through those groups. Users created in the module get none on their own record, unlike users created in the backend form, which get most of them by default.
- Give the group of the user managers access to the module Backend users.
- Make sure the installation can send mail.
User managers only see users whose groups are all assignable. Admins, users without a group, users with permissions on their own record (DB or file mounts, modules, languages or TSconfig) and their own account are never listed. The email address of an existing user can only be changed by an admin, so a user manager cannot redirect the password reset link to themselves. Every change is written to the TYPO3 log.
The module asks user managers to confirm their password (sudo mode) and
remembers the confirmation for 15 minutes. The core skips this step in the
Development application context, so test it in another context.
Converting Powermail forms
typo3 pn:powermail:convert # list the forms typo3 pn:powermail:convert 2 --dry-run # print the YAML of form uid 2 typo3 pn:powermail:convert 2 --path=EXT:my_sitepackage/Resources/Private/Forms/ typo3 pn:powermail:convert --all --path=EXT:my_sitepackage/Resources/Private/Forms/
Powermail itself does not need to be installed. Converting requires --path
(or --dry-run); the path must be listed in the form
persistenceManager.allowedExtensionPaths. Without a recipient in the
Powermail plugin, the generated mail finisher uses
[MAIL][defaultMailFromAddress].
Development
composer install .Build/bin/phpunit -c phpunit.xml # unit tests .Build/bin/phpunit -c phpunit.functional.xml # functional tests, SQLite
License
GPL-2.0-or-later, see LICENSE.