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

Steffen Kamper steffen at sk-typo3.de
Fri Nov 23 17:35:52 CET 2007


"Ingmar Schlecht" <ingmar at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1195827044.5970.typo3-team-core at lists.netfielders.de...
> 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

should be no problem to loop the array, but can be done one step later.
Ingmar, could you update t3lib_extMgm::addPiFlexFormValue as well or should 
i prepare a patch after commit?

vg  Steffen 




More information about the TYPO3-team-core mailing list