[Typo3-dev] just a CODE field !

Daniel Groh daniel.groh at gmx.de
Fri Jul 15 13:41:50 CEST 2005


Hi,

the thing about the 'CODE:' field in plugins is depreciated 
and you should use FlexForms instead to configure your plugin.

If you want to activate the 'CODE:' field anyway, open the 
file 'ext_tables.php' in your extension dir and look for the 
following line according to your plugin suffix (_pi1, _pi2, 
etc):

$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY."_pi1"]="layout,select_key";

In this line remove ',select_key'. After clearing all cache 
the 'CODE:' field should be visible. To fetch the value 
inside your plugin use

$code = $this->cObj->stdWrap($conf["code"],$conf["code."]);

Best Regards,
Daniel


Brice BERNARD wrote:
> Hi Everyone
> 
> In the backend form of my plugin, I have the following field :
> 
> - Type
> - Header
> - Plugin
> - Startingpoint
> 
> I'd like to had a new field CODE like this :
> 
> - Type
> - Header
> - Plugin
> - [ CODE ]
> - Startingpoint
> 
> And of course access this value in my plugin class, I haven't found (yet) and hope someone can help me.
> 
> THX :) - brikou




More information about the TYPO3-dev mailing list