[Typo3-dev] Restrict record types for column records
Andreas Otto
ao-lists at php4win.de
Thu Jan 20 10:33:56 CET 2005
Hi,
I have managed to show the column "records" of the table "tt_content"
when a specific content element is used and attach a wizard to it to
add a specific new record.
However, what I would like to do is, to show the wizard only when the
specific content element is used but I have no idea if this is
possible.
Below is what I have done so far.
// Configure the records field to show up when th_exttable is used.
$TCA["tt_content"]["types"]["th_exttable_pi1"]["showitem"] .=
",records";
// Configure the records field to have a wizard for adding a new HSL
Dataset.
// TODO: find a way to restrict this to the extension th_exttable.
$TCA["tt_content"]["columns"]['records']['config']['wizards']= Array(
"_PADDING" => 1,
"_VERTICAL" => 1,
"add" => Array(
"type" => "script",
"title" =>
"LLL:EXT:dkd_hsldb/locallang_db.php:tx_dkdhsldb_dataset_new",
"icon" => "add.gif",
"params" => Array(
"table"=>"tx_dkdhsldb_dataset",
"pid" => "###STORAGE_PID###",
"setValue" => "prepend"
),
"script" => "wizard_add.php",
),
);
Cheers,
Andreas
--
Andreas Otto <andreas at php4win.de>
Using PHP on Windows? www.php4win.de
More information about the TYPO3-dev
mailing list