[Typo3] TCA & interface.showRecordFieldList
Peter Wechtersbach
wechta at gmail.com
Tue Mar 22 13:58:37 CET 2005
Hi list
Somewhere i read that this(for example):
'interface' => Array (
'showRecordFieldList' => 'date,date_archive,title',
'maxDBListItems' => 5,
'maxSingleDBListItems' => 50,
),
should show under module web->List list of entries in database with columns date, date_archive, title. But all i get is [uid], Here is the code form my tca.php
TCA.PHP
<?php
if (!defined ("TYPO3_MODE")) die ("Access denied.");
$TCA["tx_etednik_poglavje"] = Array (
"ctrl" => $TCA["tx_etednik_poglavje"]["ctrl"],
'interface' => Array (
'showRecordFieldList' => 'date,date_archive,title',
'maxDBListItems' => 5,
'maxSingleDBListItems' => 50,
),
"feInterface" => $TCA["tx_etednik_poglavje"]["feInterface"],
"columns" => Array (
"title" => Array (
"exclude" => 0,
"label" => "LLL:EXT:e_tednik/locallang_db.php:tx_etednik_poglavje.title",
"config" => Array (
"type" => "input",
"size" => "30",
"eval" => "required,trim",
)
),
'hidden' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
'config' => Array (
'type' => 'check'
)
),
"date" => Array (
"exclude" => 1,
"label" => "LLL:EXT:e_tednik/locallang_db.php:tx_etednik_poglavje.date",
"config" => Array (
"type" => "input",
"size" => "8",
"max" => "20",
"eval" => "required, date",
"checkbox" => "0",
"default" => mktime(0, 0, 0, date("m") , date("d"), date("Y"))
)
),
"date_archive" => Array (
"exclude" => 1,
"label" => "LLL:EXT:e_tednik/locallang_db.php:tx_etednik_poglavje.date_archive",
"config" => Array (
"type" => "input",
"size" => "8",
"max" => "20",
"eval" => "required, date",
"checkbox" => "0",
"default" => mktime(0, 0, 0, date("m") , date("d")+ 7, date("Y"))
)
),
"types" => Array (
"0" => Array("showitem" => "title;;;;2-2-2, hidden;;;;3-3-3, date;;;;2-2-2, date_archive;;;;2-2-2, content;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_etednik/rte/], image;;;;3-3-3, imageheight;;;;3-3-3,imagewidth;;;;3-3-3,imageborder;;;;3-3-3, imageorient;;;;3-3-3")
),
"palettes" => Array (
"1" => Array("showitem" => "title")
)
);
?>
And EXT_TABLES.PHP
<?php
if (!defined ("TYPO3_MODE")) die ("Access denied.");
require_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_addOptionToSelect.php');
t3lib_extMgm::allowTableOnStandardPages("tx_etednik_poglavje");
t3lib_extMgm::addToInsertRecords("tx_etednik_poglavje");
$TCA["tx_etednik_poglavje"] = Array (
"ctrl" => Array (
"title" => "LLL:EXT:e_tednik/locallang_db.php:tx_etednik_poglavje",
"label" => "uid",
"tstamp" => "tstamp",
"crdate" => "crdate",
"cruser_id" => "cruser_id",
"sortby" => "sorting",
"delete" => "deleted",
"dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php",
"iconfile" => t3lib_extMgm::extRelPath($_EXTKEY)."icon_tx_etednik_poglavje.gif",
),
"feInterface" => Array (
"fe_admin_fieldList" => "date,date_archive,title",
)
);
?>
Does anybody know what im doing wrong??? Or i just got it wrong :(
- Peter Wechtersbach (wechta)
-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
More information about the TYPO3-english
mailing list