[!!!][TASK] Rework shortcut PHP API functionality
To be able to introduce URL rewrites for the backend, the internal handling and registration of the shortcut PHP API is reworked. The Shortcut PHP API previously has the full URL of the shortcut target stored in the database. This lead to many problems such as shortcuts got invalid as soon as their target module changed its route path. Furthermore, this required unnecessary functionality like replacing tokens on URL creation. Therefore, a shortcut record now stores only the route identifier of the module to link to and necessary arguments in two new database columns. A upgrade wizard is in place to migrate existing data. The rework also required to deprecate some methods in the ShortcutButton API and a parameter signature change of the JavaScript function `TYPO3.ShortcutMenu.createShortcut()` which performs the AJAX call to create new shortcuts. Side effect, this also deprecated the last remains of xMOD_alt_doc.php in the core. Resolves: #93093 Releas...
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Toolbar/ShortcutMenu.ts 8 additions, 11 deletions...ckend/Resources/Public/TypeScript/Toolbar/ShortcutMenu.ts
- typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php 140 additions, 215 deletions...t/backend/Classes/Backend/Shortcut/ShortcutRepository.php
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 1 addition, 2 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/Controller/HelpController.php 1 addition, 2 deletionstypo3/sysext/backend/Classes/Controller/HelpController.php
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php 1 addition, 2 deletions...ysext/backend/Classes/Controller/PageLayoutController.php
- typo3/sysext/backend/Classes/Controller/ShortcutController.php 7 additions, 7 deletions.../sysext/backend/Classes/Controller/ShortcutController.php
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 1 addition, 1 deletion...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/Action/ShortcutButton.php 153 additions, 31 deletions...ses/Template/Components/Buttons/Action/ShortcutButton.php
- typo3/sysext/backend/Classes/Template/ModuleTemplate.php 49 additions, 17 deletionstypo3/sysext/backend/Classes/Template/ModuleTemplate.php
- typo3/sysext/backend/Classes/ViewHelpers/ModuleLayout/Button/ShortcutButtonViewHelper.php 25 additions, 4 deletions...wHelpers/ModuleLayout/Button/ShortcutButtonViewHelper.php
- typo3/sysext/backend/Configuration/Services.yaml 3 additions, 0 deletionstypo3/sysext/backend/Configuration/Services.yaml
- typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ShortcutMenu.js 1 addition, 1 deletion...ckend/Resources/Public/JavaScript/Toolbar/ShortcutMenu.js
- typo3/sysext/backend/Tests/Functional/Backend/Fixtures/ShortcutsAddedResult.csv 11 additions, 0 deletions...ests/Functional/Backend/Fixtures/ShortcutsAddedResult.csv
- typo3/sysext/backend/Tests/Functional/Backend/Fixtures/ShortcutsBase.csv 8 additions, 0 deletions...ckend/Tests/Functional/Backend/Fixtures/ShortcutsBase.csv
- typo3/sysext/backend/Tests/Functional/Backend/Shortcut/ShortcutRepositoryTest.php 181 additions, 0 deletions...ts/Functional/Backend/Shortcut/ShortcutRepositoryTest.php
- typo3/sysext/backend/Tests/Functional/Controller/ShortcutControllerTest.php 105 additions, 0 deletions...nd/Tests/Functional/Controller/ShortcutControllerTest.php
- typo3/sysext/backend/Tests/Functional/Fixtures/sys_be_shortcuts.xml 9 additions, 0 deletions...xt/backend/Tests/Functional/Fixtures/sys_be_shortcuts.xml
- typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php 122 additions, 0 deletions...Template/Components/Buttons/Action/ShortcutButtonTest.php
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordList.html 10 additions, 0 deletions...ackend/Tests/Functional/Template/Fixtures/RecordList.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListSingleTable.html 10 additions, 0 deletions...s/Functional/Template/Fixtures/RecordListSingleTable.html
Please register or sign in to comment