[TASK] Use later hook for rendering of adminPanel 27/56827/2
authorSusanne Moog <susanne.moog@typo3.org>
Sun, 29 Apr 2018 15:50:51 +0000 (17:50 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 2 May 2018 19:13:15 +0000 (21:13 +0200)
The admin panel should be rendered as late as possible
to display a mostly complete set of data.

Relates: #84044
Resolves: #84893
Releases: master
Change-Id: Ib06dbfed15318492247353275b079e2f03249fa5
Reviewed-on: https://review.typo3.org/56827
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Tested-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/adminpanel/Classes/Hooks/RenderHook.php
typo3/sysext/adminpanel/ext_localconf.php

index c0a5506..a92269f 100644 (file)
@@ -22,13 +22,13 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
 
 /**
- * Hook used to postProcess output - renders the admin panel
+ * Hook to render the admin panel
  */
 class RenderHook
 {
 
     /**
-     * PostProcess output hook to render the admin panel
+     * Hook to render the admin panel
      * We use a hook this late in the project to make sure all data is collected and can be displayed
      *
      * As the main content is already rendered, we use a string replace on the content to append the adminPanel
index ba181f0..dd44bc7 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] = \TYPO3\CMS\Adminpanel\Hooks\RenderHook::class . '->renderAdminPanel';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe'][] = \TYPO3\CMS\Adminpanel\Hooks\RenderHook::class . '->renderAdminPanel';
 
 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] = [
     'preview' => [