[TYPO3-core] RFC: Feature #6770: Implement option to use different Flexform Datastructures per type field value

Ingmar Schlecht ingmar at typo3.org
Thu Nov 22 08:37:50 CET 2007


Hi Steffen,

Steffen Kamper schrieb:
> Hi Ingmar,
> 
> looks good, but can you give a short description how to use?
> Am i right to do a inclusion like
> 
> $TCA['tt_content']['columns']['pi_flexform']['config']['ds'][$_EXTKEY,'list'] 
> = 'FILE:EXT:'.$_EXTKEY.'/flexform.xml';
> 
> ?

Yep, that's right, as it consists of "[list_key value],[CType value]".

You can use any of the following for your plugin tx_myext_pi1:
['ds']['tx_myext_pi1','list'] =  'FILE:EXT:'.$_EXTKEY.'/flexform.xml';
['ds']['tx_myext_pi1'] =  'FILE:EXT:'.$_EXTKEY.'/flexform.xml'; (for
backwards compatibility)

And for using it in a content element with CType "login", you use:
['ds']['*,login'] =  'FILE:EXT:'.$_EXTKEY.'/flexform.xml';

I'll document it properly before commit.

cheers
Ingmar


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list