Hallo,
vermutlich ist es eine Anfängerfrage aber in dem Formu und in diverser Literatur komme ich nicht weiter.
Mein Problem:
Nach dem anlgen einer neuen Ext. (mit dem Kickstarter) möchte ich eine neue Tabelle mit Werten füllen.
Dies soll neben 'Neuer - Record' (dies funktioniert) auch komfortabel im BE durch die Formulare klappen.
Ein neuer 'Reiter' muß nicht angelegt werden. Die Eingabe unter 'General' oder 'Plugin' tuts auch.
Ich weiss das die Felder in tca.php und ext_tables.php irgendwie freigschaltet werden müssen. Wie, aber leider nicht.
Es geht um die Felder 'wkn' und 'wkn2_advanced'.
Kann mir jemand helfen? Vielen Dank im Voraus!!
Beste Grüße
Marc
Hier mein tca.php Inhalt:
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TCA["user_mmtest_1"] = array (
"ctrl" => $TCA["user_mmtest_1"]["ctrl"],
"interface" => array (
"showRecordFieldList" => "sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,fe_group,wkn,wkn2_advanced"
),
"feInterface" => $TCA["user_mmtest_1"]["feInterface"],
"columns" => array (
'sys_language_uid' => array ( ## WOP:[tables][1][localization]
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
)
)
),
'l18n_parent' => array ( ## WOP:[tables][1][localization]
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'items' => array (
array('', 0),
),
'foreign_table' => 'user_mmtest_1',
'foreign_table_where' => 'AND user_mmtest_1.pid=###CURRENT_PID### AND user_mmtest_1.sys_language_uid IN (-1,0)',
)
),
'l18n_diffsource' => array ( ## WOP:[tables][1][localization]
'config' => array (
'type' => 'passthrough'
)
),
'hidden' => array ( ## WOP:[tables][1][add_hidden]
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => '0'
)
),
'starttime' => array ( ## WOP:[tables][1][add_starttime]
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
'config' => array (
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'default' => '0',
'checkbox' => '0'
)
),
'endtime' => array ( ## WOP:[tables][1][add_endtime]
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
'config' => array (
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0',
'range' => array (
'upper' => mktime(0, 0, 0, 12, 31, 2020),
'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
)
)
),
'fe_group' => array ( ## WOP:[tables][1][add_access]
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
'config' => array (
'type' => 'select',
'items' => array (
array('', 0),
array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
),
'foreign_table' => 'fe_groups'
)
),
"wkn" => Array ( ## WOP:[tables][1][fields][1][fieldname]
"exclude" => 1, ## WOP:[tables][1][fields][1][excludeField]
"label" => "LLL:EXT:user_mmtest/locallang_db.xml:user_mmtest_1.wkn", ## WOP:[tables][1][fields][1][title]
"config" => Array (
"type" => "input", ## WOP:[tables][1][fields][1][type]
"size" => "30", ## WOP:[tables][1][fields][1][conf_size]
"eval" => "required", ## WOP:[tables][1][fields][1][conf_required]
)
),
"wkn2_advanced" => Array ( ## WOP:[tables][1][fields][2][fieldname]
"exclude" => 1, ## WOP:[tables][1][fields][2][excludeField]
"label" => "LLL:EXT:user_mmtest/locallang_db.xml:user_mmtest_1.wkn2_advanced", ## WOP:[tables][1][fields][2][title]
"config" => Array (
"type" => "input", ## WOP:[tables][1][fields][2][type]
"size" => "30", ## WOP:[tables][1][fields][2][conf_size]
)
),
),
"types" => array (
"0" => array("showitem" => "sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1, wkn, wkn2_advanced")
),
"palettes" => array (
"1" => array("showitem" => "starttime, endtime, fe_group")
)
);
?>
Hier meine ext_tabels.php:
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
## WOP:[tables][1][allow_on_pages]
t3lib_extMgm::allowTableOnStandardPages('user_mmtest_1');
## WOP:[tables][1][allow_ce_insert_records]
t3lib_extMgm::addToInsertRecords('user_mmtest_1');
$TCA["user_mmtest_1"] = array (
"ctrl" => array (
'title' => 'LLL:EXT:user_mmtest/locallang_db.xml:user_mmtest_1', ## WOP:[tables][1][title]
'label' => 'wkn', ## WOP:[tables][1][header_field]
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'type' => 'wkn', ## WOP:[tables][1][type_field]
'languageField' => 'sys_language_uid', ## WOP:[tables][1][localization]
'transOrigPointerField' => 'l18n_parent', ## WOP:[tables][1][localization]
'transOrigDiffSourceField' => 'l18n_diffsource', ## WOP:[tables][1][localization]
'sortby' => 'sorting', ## WOP:[tables][1][sorting]
'delete' => 'deleted', ## WOP:[tables][1][add_deleted]
'enablecolumns' => array ( ## WOP:[tables][1][add_hidden] / [tables][1][add_starttime] / [tables][1][add_endtime] / [tables][1][add_access]
'disabled' => 'hidden', ## WOP:[tables][1][add_hidden]
'starttime' => 'starttime', ## WOP:[tables][1][add_starttime]
'endtime' => 'endtime', ## WOP:[tables][1][add_endtime]
'fe_group' => 'fe_group', ## WOP:[tables][1][add_access]
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_user_mmtest_1.gif',
),
"feInterface" => array (
"fe_admin_fieldList" => "sys_language_uid, l18n_parent, l18n_diffsource, hidden, starttime, endtime, fe_group, wkn, wkn2_advanced",
)
);
## WOP:[sv][1][type]
t3lib_extMgm::addService($_EXTKEY, '' /* sv type */, 'user_mmtest_sv1' /* sv key */,
array(
'title' => '',## WOP:[sv][1][title]
'description' => '',## WOP:[sv][1][description]
'subtype' => '',## WOP:[sv][1][subtype]
'available' => TRUE,
'priority' => 50,## WOP:[sv][1][priority]
'quality' => 50,## WOP:[sv][1][quality]
'os' => '',## WOP:[sv][1][os]
'exec' => '',## WOP:[sv][1][exec]
'classFile' => t3lib_extMgm::extPath($_EXTKEY).'sv1/class.user_mmtest_sv1.php',
'className' => 'user_mmtest_sv1',
)
);
## WOP:
[1]
t3lib_extMgm::addStaticFile($_EXTKEY,'static//', '');
## WOP:[cm][1]:
if (TYPO3_MODE=="BE") {
$GLOBALS["TBE_MODULES_EXT"]["xMOD_alt_clickmenu"]["extendCMclasses"][]=array(
"name" => "user_mmtest_cm1",
"path" => t3lib_extMgm::extPath($_EXTKEY)."class.user_mmtest_cm1.php"
);
}
## WOP:[pi][1][addType]
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
## WOP:[pi][1][addType]
t3lib_extMgm::addPlugin(array('LLL:EXT:user_mmtest/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,'pi1/static/','user_mmtest Plugin');
## WOP:[pi][1][plus_wiz]:
if (TYPO3_MODE=="BE") $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["user_mmtest_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi1/class.user_mmtest_pi1_wizicon.php';
?>