[TASK] Integrate "Functions" as context menu 77/53377/8
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 2 Jul 2017 04:47:16 +0000 (06:47 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 3 Jul 2017 13:54:01 +0000 (15:54 +0200)
commitc91e77ef376ff8480c0f538361cae68866e86a84
tree4d5a39a2ecfdb0b649865e0d350a672256610ede
parente6878c490509979a758e7d5fbfbf402ccf20a812
[TASK] Integrate "Functions" as context menu

The patch integrates ext:wizard_sortpages and ext:wizard_crpages
as context menu items in "more" of the page record context menus
and gets rid of the two default "Functions" main module entries,
effectively obsoleting ext:func, which will be extracted to TER
for b/w compat in a second step.

* Isolate ext:func by moving its language xml from ext:lang to ext:func
* Routing configuration for "sort pages" and "create pages" in ext:backend
* Context menu handling for "sort pages" and "create pages" in ext:backend
* Free "sort pages" and "create pages" from dependency to ext:frontend
  by not calling PageRepository->getMenu() anymore
* Proper use of request/response instead of _GP access
* Better controller / view separation

Change-Id: I2c7acbb79ddd8404fbef69a1c126d250b976629b
Resolves: #81768
Releases: master
Reviewed-on: https://review.typo3.org/53377
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
57 files changed:
Build/tsconfig.json
composer.json
composer.lock
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/PageProvider.php
typo3/sysext/backend/Classes/Controller/Page/NewMultiplePagesController.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Controller/Page/SortSubPagesController.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Module/AbstractFunctionModule.php
typo3/sysext/backend/Classes/ViewHelpers/ModuleLinkViewHelper.php [new file with mode: 0644]
typo3/sysext/backend/Configuration/Backend/Routes.php
typo3/sysext/backend/Resources/Private/Language/locallang_pages_new.xlf [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Language/locallang_pages_new_csh.xlf [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Language/locallang_pages_sort.xlf [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Language/locallang_pages_sort_csh.xlf [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Templates/Page/NewPages.html [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Templates/Page/SortSubPages.html [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Images/Csh/PagesNew_1.png [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Images/Csh/PagesNew_2.png [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Images/Csh/PagesSort.png [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/ContextMenuActions.js
typo3/sysext/backend/Resources/Public/JavaScript/NewMultiplePages.js [new file with mode: 0644]
typo3/sysext/backend/ext_tables.php
typo3/sysext/core/Documentation/Changelog/8.5/Deprecation-78647-MoveLanguageFilesFromEXTlanglocallang_ToResourcesPrivateLanguage.rst
typo3/sysext/core/Documentation/Changelog/master/Important-81768-CreatePagesAndSortPagesInContextMenu.rst [new file with mode: 0644]
typo3/sysext/core/ext_tables.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Resources/Private/Language/locallang_csh.xml
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/func/Classes/Controller/PageFunctionsController.php
typo3/sysext/func/Resources/Private/Language/locallang_csh_web_func.xlf [new file with mode: 0644]
typo3/sysext/func/Resources/Private/Language/locallang_mod_web_func.xlf [new file with mode: 0644]
typo3/sysext/func/Resources/Public/Images/Csh/pagetree_overview_11.png [new file with mode: 0644]
typo3/sysext/func/ext_tables.php
typo3/sysext/lang/Resources/Private/Language/locallang_csh_web_func.xlf [deleted file]
typo3/sysext/lang/Resources/Private/Language/locallang_csh_web_info.xlf
typo3/sysext/lang/Resources/Private/Language/locallang_mod_web_func.xlf [deleted file]
typo3/sysext/lang/Resources/Public/Images/cshimages/pagetree_overview_11.png [deleted file]
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php [deleted file]
typo3/sysext/wizard_crpages/LICENSE.txt [deleted file]
typo3/sysext/wizard_crpages/Resources/Private/Language/locallang.xlf [deleted file]
typo3/sysext/wizard_crpages/Resources/Private/Language/locallang_csh.xlf [deleted file]
typo3/sysext/wizard_crpages/Resources/Private/Templates/CreatePagesWizard.html [deleted file]
typo3/sysext/wizard_crpages/Resources/Public/Icons/Extension.png [deleted file]
typo3/sysext/wizard_crpages/Resources/Public/Images/cshimages/wizards_1.png [deleted file]
typo3/sysext/wizard_crpages/Resources/Public/Images/cshimages/wizards_2.png [deleted file]
typo3/sysext/wizard_crpages/Resources/Public/JavaScript/WizardCreatePages.js [deleted file]
typo3/sysext/wizard_crpages/composer.json [deleted file]
typo3/sysext/wizard_crpages/ext_emconf.php [deleted file]
typo3/sysext/wizard_crpages/ext_tables.php [deleted file]
typo3/sysext/wizard_sortpages/Classes/View/SortPagesWizardModuleFunction.php [deleted file]
typo3/sysext/wizard_sortpages/LICENSE.txt [deleted file]
typo3/sysext/wizard_sortpages/Resources/Private/Language/locallang.xlf [deleted file]
typo3/sysext/wizard_sortpages/Resources/Private/Language/locallang_csh.xlf [deleted file]
typo3/sysext/wizard_sortpages/Resources/Private/Templates/SortPagesWizard.html [deleted file]
typo3/sysext/wizard_sortpages/Resources/Public/Icons/Extension.png [deleted file]
typo3/sysext/wizard_sortpages/Resources/Public/Images/cshimages/wizards_1.png [deleted file]
typo3/sysext/wizard_sortpages/composer.json [deleted file]
typo3/sysext/wizard_sortpages/ext_emconf.php [deleted file]
typo3/sysext/wizard_sortpages/ext_tables.php [deleted file]