[TASK] Use ModuleTemplate API for EXT:about 74/43774/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 4 Oct 2015 17:44:50 +0000 (19:44 +0200)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Mon, 5 Oct 2015 07:00:10 +0000 (09:00 +0200)
Releases: master
Resolves: #70350
Change-Id: Ibe3eaa632daf5044489fc9e3c9c9e8424d39a7ef
Reviewed-on: http://review.typo3.org/43774
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/about/Classes/Controller/AboutController.php
typo3/sysext/about/Resources/Private/Layouts/Default.html
typo3/sysext/about/Resources/Private/Templates/About/Index.html

index 9317efa..46eaaf7 100644 (file)
@@ -14,12 +14,20 @@ namespace TYPO3\CMS\About\Controller;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Backend\View\BackendTemplateView;
+use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
+
 /**
  * Module 'about' shows some standard information for TYPO3 CMS: About-text, version number and so on.
  */
 class AboutController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
 
        /**
+        * @var
+        */
+       protected $defaultViewObjectName = BackendTemplateView::class;
+
+       /**
         * @var \TYPO3\CMS\About\Domain\Repository\ExtensionRepository
         */
        protected $extensionRepository;
@@ -32,6 +40,18 @@ class AboutController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
        }
 
        /**
+        * Set up the doc header properly here
+        *
+        * @param ViewInterface $view
+        */
+       protected function initializeView(ViewInterface $view) {
+               /** @var BackendTemplateView $view */
+               parent::initializeView($view);
+               // Disable Path
+               $view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation([]);
+       }
+
+       /**
         * Main action: Show standard information
         *
         * @return void
index fcf0dce..15f21e6 100644 (file)
@@ -1,12 +1,2 @@
-<f:be.container includeCssFiles="{0: '{f:uri.resource(path:\'Css/styles.css\')}'}">
-       <div id="typo3-docheader">
-               <div class="typo3-docheader-functions">&nbsp;</div>
-               <div class="typo3-docheader-buttons">&nbsp;</div>
-       </div>
-
-       <div id="typo3-docbody">
-               <div id="typo3-mod-help-about-index-php-outer">
-                       <f:render section="Content" />
-               </div>
-       </div>
-</f:be.container>
\ No newline at end of file
+<f:be.pageRenderer includeCssFiles="{0: '{f:uri.resource(path:\'Css/styles.css\')}'}" />
+<f:render section="Content" />
index da5cffb..231e8c3 100644 (file)
@@ -1,13 +1,13 @@
 <f:layout name="Default" />
 
 <f:section name="Content">
-
-       <f:render partial="Logo" arguments="{_all}" />
-       <f:render partial="About" arguments="{_all}" />
-       <f:render partial="Donation" arguments="{_all}" />
-       <f:render partial="Credits" arguments="{_all}" />
-       <f:render partial="CoreTeam" arguments="{_all}" />
-       <f:render partial="ExternalLibraries" arguments="{_all}" />
-       <f:render partial="Extensions" arguments="{_all}" />
-
+       <div id="typo3-mod-help-about-index-php-outer">
+               <f:render partial="Logo" arguments="{_all}" />
+               <f:render partial="About" arguments="{_all}" />
+               <f:render partial="Donation" arguments="{_all}" />
+               <f:render partial="Credits" arguments="{_all}" />
+               <f:render partial="CoreTeam" arguments="{_all}" />
+               <f:render partial="ExternalLibraries" arguments="{_all}" />
+               <f:render partial="Extensions" arguments="{_all}" />
+       </div>
 </f:section>
\ No newline at end of file