[TYPO3-german] Grundgerüst Backendextension die bestehende Daten anzeigt (keine neue Tabelle)

Renzo Bauen typo3 at conpassione.ch
Thu Jan 29 23:22:17 CET 2015


Liebe Anja

Die Struktur ist grundsätzlich gleich wie bei allen Ext. 
Allerdings braucht es eine zusätzliche Definition in der ext_tables.php.

Ich habe das mal so gemacht:
==================================
<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

/**
 * Include Plugins
 */

//Pi1
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
	$_EXTKEY,
	'Pi1',
	'Event List'
);

/**
 * Include BE-Module
 */
if (TYPO3_MODE === 'BE' && !$confArr['disableBackendModule']
&& !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
        'CP.' . $_EXTKEY,
        'web',     // Make module a submodule of 'web'
        'cpevent',     // Submodule key
        '',         // Position
        array(
            'Module' => 'listBe, selectEvent, searchBe, exportXlsBe,
exportDocBe, exportCsvBe'
        ),
        array(
            'access' => 'user,group',
            'icon'   => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
            'labels' => 'LLL:EXT:' . $_EXTKEY .
'/Resources/Private/Language/locallang_mod.xml',
        )
    );
}

/**
 * Extension Name
 */
$extensionName = \TYPO3\CMS\Core\Utility
\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);

/**
 * Include Fexform
 */
$pluginSignature = strtolower($extensionName) . '_pi1';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility
\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature,
'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform.xml');

==================================
Dann braucht es im Verzeichnis "Controller" eine Datei
ModuleController.php die deine Actions enthält, die Du in der
ext_tables.php angegeben hast.
Der Rest ist dann gleich wie bei einer "normalen" Extension.

Gruss Renzo
-- 
conPassione gmbh
CH-3661 Uetendorf
+41 33 345 00 92 




More information about the TYPO3-german mailing list