[TASK] EXT:recordlist Uniform extension directory structure 09/41709/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 19 Jul 2015 16:31:16 +0000 (18:31 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 20 Jul 2015 12:14:53 +0000 (14:14 +0200)
Moved the code from the mod1 directory to the Modules/Recordlist directory.

Resolves: #68352
Releases: master
Change-Id: I72bb63b692b1ad9afa8e9ec02776df82b5665fe7
Reviewed-on: http://review.typo3.org/41709
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/recordlist/Modules/Recordlist/index.php [new file with mode: 0644]
typo3/sysext/recordlist/ext_tables.php
typo3/sysext/recordlist/mod1/index.php [deleted file]

index a54daa9..8d83631 100644 (file)
@@ -519,7 +519,7 @@ class RecordList {
                        $this->body .= '<div class="db_list-dashboard">' . $dblist->clipObj->printClipboard() . '</div>';
                }
                // Additional footer content
-               $footerContentHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['recordlist/mod1/index.php']['drawFooterHook'];
+               $footerContentHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['recordlist/Modules/Recordlist/index.php']['drawFooterHook'];
                if (is_array($footerContentHook)) {
                        foreach ($footerContentHook as $hook) {
                                $params = array();
diff --git a/typo3/sysext/recordlist/Modules/Recordlist/index.php b/typo3/sysext/recordlist/Modules/Recordlist/index.php
new file mode 100644 (file)
index 0000000..189bd04
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/**
+ * Module: Web>List
+ *
+ * Listing database records from the tables configured in $GLOBALS['TCA'] as they are related to the current page or root.
+ *
+ * Notice: This module and Web>Page module has a special status since they
+ * are NOT located in their actual module directories (fx. mod/web/list/) but in the
+ * backend root directory. This has some historical and practical causes.
+ */
+\TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
+
+$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Recordlist\RecordList::class);
+$GLOBALS['SOBE']->init();
+$GLOBALS['SOBE']->clearCache();
+$GLOBALS['SOBE']->main();
+$GLOBALS['SOBE']->printContent();
index ec06d1d..aaed399 100644 (file)
@@ -4,20 +4,20 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'web_list',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/'
+               'EXT:recordlist/Modules/Recordlist/'
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
                'web',
                'list',
                '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
+               'EXT:recordlist/Modules/Recordlist/',
                array(
                        'script' => '_DISPATCH',
                        'access' => 'user,group',
                        'name' => 'web_list',
                        'labels' => array(
                                'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-list.svg',
+                                       'tab' => 'EXT:recordlist/Resources/Public/Icons/module-list.svg',
                                ),
                                'll_ref' => 'LLL:EXT:lang/locallang_mod_web_list.xlf',
                        ),
@@ -27,6 +27,6 @@ if (TYPO3_MODE === 'BE') {
        // Register element browser wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_element_browser',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/ElementBrowserWizard/'
+               'EXT:recordlist/Modules/Wizards/ElementBrowserWizard/'
        );
 }
\ No newline at end of file
diff --git a/typo3/sysext/recordlist/mod1/index.php b/typo3/sysext/recordlist/mod1/index.php
deleted file mode 100644 (file)
index 189bd04..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Module: Web>List
- *
- * Listing database records from the tables configured in $GLOBALS['TCA'] as they are related to the current page or root.
- *
- * Notice: This module and Web>Page module has a special status since they
- * are NOT located in their actual module directories (fx. mod/web/list/) but in the
- * backend root directory. This has some historical and practical causes.
- */
-\TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
-
-$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Recordlist\RecordList::class);
-$GLOBALS['SOBE']->init();
-$GLOBALS['SOBE']->clearCache();
-$GLOBALS['SOBE']->main();
-$GLOBALS['SOBE']->printContent();