[TASK] Versions: Move backend template to extension context
authorFelix Kopp <felix@phorax.com>
Wed, 1 May 2013 17:38:17 +0000 (19:38 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 1 May 2013 18:07:50 +0000 (20:07 +0200)
Most html templates in backend are used in one extension only.
Those templates should be held in extension context to reduce
dependencies.

Creates extbase/flow directory structures.

Change-Id: Ic65c85492898bdd325a642c5c5d90b2b6b7f85bf
Fixes: #47794
Releases: 6.2
Reviewed-on: https://review.typo3.org/20385
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/version/Classes/Controller/VersionModuleController.php
typo3/sysext/version/Resources/Private/Templates/version.html [new file with mode: 0644]

index 4410336..6d80333 100644 (file)
@@ -152,7 +152,7 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                // Draw the header.
                $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
-               $this->doc->setModuleTemplate('templates/version.html');
+               $this->doc->setModuleTemplate('EXT:version/Resources/Private/Templates/version.html');
                // Add styles
                $this->doc->inDocStylesArray[$GLOBALS['MCONF']['name']] = '
 .version-diff-1 { background-color: green; }
diff --git a/typo3/sysext/version/Resources/Private/Templates/version.html b/typo3/sysext/version/Resources/Private/Templates/version.html
new file mode 100644 (file)
index 0000000..2bb282c
--- /dev/null
@@ -0,0 +1,34 @@
+<!-- ###FULLDOC### begin -->
+<div class="typo3-fullDoc">
+       <div id="typo3-docheader">
+               <div class="typo3-docheader-functions">
+                       <div class="left">###CSH### ###WS_MENU### ###FUNC_MENU###</div>
+                       <div class="right">###PAGEPATH######PAGEINFO###</div>
+               </div>
+               <div class="typo3-docheader-buttons">
+                       <div class="left">###BUTTONLIST_LEFT###</div>
+                       <div class="right">###BUTTONLIST_RIGHT###</div>
+               </div>
+       </div>
+
+       <div id="typo3-docbody">
+               <div id="typo3-inner-docbody">
+                       ###CONTENT###
+               </div>
+       </div>
+</div>
+<!-- ###FULLDOC### end -->
+
+<!-- Grouping the icons on top -->
+
+<!-- ###BUTTON_GROUP_WRAP### -->
+<div class="buttongroup">###BUTTONS###</div>
+<!-- ###BUTTON_GROUP_WRAP### -->
+
+<!-- ###BUTTON_GROUPS_LEFT### -->
+<!-- ###BUTTON_GROUP4### -->###VIEW###<!-- ###BUTTON_GROUP4### -->
+<!-- ###BUTTON_GROUPS_LEFT### -->
+
+<!-- ###BUTTON_GROUPS_RIGHT### -->
+<!-- ###BUTTON_GROUP1### -->###SHORTCUT###<!-- ###BUTTON_GROUP1### -->
+<!-- ###BUTTON_GROUPS_RIGHT### -->