Hi Forum,
ich habe Direct_Mail installiert und es läuft fast problemlos. Jetzt will mein Kunde angezeigt bekommen, welche Gruppen die Benutzer gewählt haben.
Direct_Mail, bzw. die Erweiterung haben zusätzliche Spalten in tt_address eingefügt (module_sys_dmail_category und module_sys_dmail_html).
Nun bin ich hingegangen und habe die php-Dateien von tt_address (local) geändert. Ich kann in diesem Zusammenhang ohne Probleme Felder aus der Datei entfernen, so daß im Backend die Liste kleiner wird, bzw. die Eingabefelder von tt_address sich reduzieren. Aber ich schaffe es einfach nicht diese beiden neuen Felder hinzuzufügen.
Was muss ich denn beachten, wenn ich die Felder hinzufüge. Hier mal ein Ausschnitt dessen, was ich gemacht habe:
tca.php
--------------------------------------------
<?php
// ******************************************************************
// This is the standard TypoScript address table, tt_address
// ******************************************************************
$TCA['tt_address'] = Array (
'ctrl' => $TCA['tt_address']['ctrl'],
'interface' => Array (
'showRecordFieldList' => 'name,module_sys_dmail_category, email,module_sys_dmail_html'
),
'feInterface' => $TCA['tt_address']['feInterface'],
'columns' => Array (
'hidden' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
'config' => Array (
'type' => 'check'
)
),
'name' => Array (
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
'config' => Array (
'type' => 'input',
'size' => '40',
'max' => '256'
)
),
'module_sys_dmail_category' => Array (
'label' => 'Kategorien',
'config' => Array (
'type' => 'input',
'size' => '10',
'max' => '10'
)
),
'email' => Array (
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
'config' => Array (
'type' => 'input',
'size' => '40',
'eval' => 'trim',
'max' => '80'
)
),
'module_sys_dmail_html' => Array (
'exclude' => 1,
'label' => 'HTML-Mail',
'config' => Array (
'type' => 'check'
)
)
),
'types' => Array (
'1' => Array('showitem' => 'hidden, name,module_sys_dmail_category, email,module_sys_dmail_html')
)
);
?>
ext_tables.php
--------------------------------------------
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TCA['tt_address'] = Array (
'ctrl' => Array (
'label' => 'name',
'label_alt' => 'email',
'default_sortby' => 'ORDER BY name',
'tstamp' => 'tstamp',
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
'delete' => 'deleted',
'title' => 'LLL:EXT:tt_address/locallang_tca.php:tt_address',
'enablecolumns' => Array (
'disabled' => 'hidden'
),
'thumbnail' => 'image',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php'
),
'feInterface' => Array (
'fe_admin_fieldList' => 'pid,hidden,name,module_sys_dmail_category, email,module_sys_dmail_html'
)
);
t3lib_extMgm::addPlugin(Array('LLL:EXT:tt_address/locallang_tca.php:pi_tt_address', '0'));
t3lib_extMgm::allowTableOnStandardPages('tt_address');
t3lib_extMgm::addToInsertRecords('tt_address');
t3lib_extMgm::addLLrefForTCAdescr('tt_address','EXT:tt_address/locallang_csh_ttaddr.php');
?>
Ich bin für jeden Hinweis dankbar
Grüße
McGregor