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

Ingmar Schlecht ingmar at typo3.org
Sat Nov 24 10:19:05 CET 2007


Committed to trunk.

I also adapted t3lib_extMgm::addPiFlexFormValue() as requested by
Steffen (Steffen, check the attached patch to see how to use it for
tx_felogin).

Doc changes are on http://wiki.typo3.org/index.php/Pending_Documentation

cheers
Ingmar



Steffen Kamper schrieb:
> "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 
> 
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ds_pointerField.patch
Type: text/x-diff
Size: 4764 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071124/e359b6a9/attachment.patch 


More information about the TYPO3-team-core mailing list