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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Nov 23 15:03:44 CET 2007


Ingmar Schlecht schrieb:
> Hi Masi,
> 
> Martin Kutschker wrote:
>> But this (my) proposal has a flaw. You cannot have different subtypes
>> per type.
> 
> I don't think that problem justifies such a complicated solution.
> 
> A more simple solution would be to just allow more than two
> ds_pointerFields to be set like this:
> 
> 'ds_pointerfield' => 'list_type,CType,mime_type',
> 'ds' => array(
>     'auxdataviewer_pi1' => 'FILE:EXT:auxdataviewer/pi1/flex.xml',
>      '*,table' => 'FILE:EXT:csc/flex.xml',
>      'tt_address_pi1,list' => 'FILE:EXT:.../...xml',
>      '*,multimedia,quicktime' => 'FILE:EXT:.../...xml',
>      '*,multimedia,flash' => 'FILE:EXT:.../...xml',
>  ),

I see, a matrix. So you don't tie the subtypes (list_types and mime_type) 
to the main type (CType).

So when I add a new pointer with an extension it'll be like that, right?

'ds_pointerfield' => 'list_type,CType,mime_type,tx_mystuff',
'ds' => array(
     'auxdataviewer_pi1' => 'FILE:EXT:auxdataviewer/pi1/flex.xml',
      '*,table' => 'FILE:EXT:csc/flex.xml',
      'tt_address_pi1,list' => 'FILE:EXT:.../...xml',
      '*,multimedia,quicktime' => 'FILE:EXT:.../...xml',
      '*,multimedia,flash' => 'FILE:EXT:.../...xml',
      '*,*,*,myval1' => 'FILE:EXT:.../...xml',
      '*,*,*,myval2' => 'FILE:EXT:.../...xml',
  ),

Masi


More information about the TYPO3-team-core mailing list