[TYPO3] How to add link to php switch in FE Extension configuration
Peter Foerger
p.foerger at vke-design.de
Tue Oct 24 11:30:08 CEST 2006
Hi Toke,
Toke Herkild schrieb:
> Hi All
>
> I'm working on an extension but I fail to find documentation for how to
> add extra fields to the plugin configuration when adding the plugin to a
> page.
>
> Eg:
> when you have a main switch in your php you'll want to beable to define
> which case gets trickered. As in goof_photobook where you can select
> show, comment or basket.
>
Don't know if I got your question right, but here's what I would do
(file: ext_tables.php):
$tempColumns = array(
"myname_switch"=> array(
"exclude" => 0,
"label" => "my_label",
"config" => Array (
"type" => "select",
"items" => Array (
Array("switch.I.0", "First option"),
Array("switch.I.2", "Second option")
)
)
)
);
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
cheers
Peter
More information about the TYPO3-english
mailing list