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

Ingmar Schlecht ingmar at typo3.org
Fri Nov 23 15:10:42 CET 2007


Martin Kutschker schrieb:
> 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',
>  ),

Yep, but as I said, I'm just going to commit the patch I sent earlier
which implements this for up to two ds_pointerFields. But that would be
upwards-compatible to an unlimited amount of pointerFields, which you
can implement later if you want.

cheers
Ingmar

-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list