[Typo3-dev] Restrict record types for column records
Kasper Skårhøj
kasper2005 at typo3.com
Thu Jan 20 21:03:57 CET 2005
Hi Andreas,
The example you can use for this problem is the bodytext field of the
tt_content table (see sysext/cms/tbl_tt_content.php)
There the form and table wizards have the option "'enableByTypeConfig'
=> 1," set. By that the wizard has to be enabled in the "types"
configuration:
.... bodytext;;9;nowrap:wizards[table], ......
- kasper
On Thu, 2005-01-20 at 10:33, Andreas Otto wrote:
> 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
--
- kasper
*******************
Happy new year! - My email address is now:
kasper2005 at typo3.com
More information about the TYPO3-dev
mailing list