[TYPO3-core] RFC 17532: Add support for file pointers in t3lib_befunc->getFlexFormDS

Sebastian Fischer sf at marketing-factory.de
Thu Feb 10 09:20:25 CET 2011


On 10.02.2011 08:12, Rens Admiraal wrote:
> I realized that a file selection field in TCA won't be compatible so you
> would also have to type the full path in a string field. So hereby I
> patch without the 'FILE:' prefix, which is also cleaner.
>
> Greetz,
> Rens
>
> On 02/09/2011 11:54 PM, Rens Admiraal wrote:
>> Hi,
>>
>> This is a SVN patch request.
>>
>> Type: Feature
>>
>> BT reference: http://bugs.typo3.org/view.php?id=17532
>>
>> Branches: 4_5
>>
>> Problem:
>> Currently t3lib_befunc->getFlexFormDS only supports passing a
>> filepointer as reference to the datastructure, or passing a reference to
>> another table (like tx_templavoila_datastructure:dataprot). In the case
>> of a reference to another table the DS XML has to be stored in the
>> table. Currently it's not possible to store a reference to a file in
>> this second table. Which is a problem if you want to store XML in the
>> filesystem.
>>
>> Solution:
>> Check if the datastructure value in the reference table starts with
>> FILE:, and handle it as being a filepointer if this condition is
>> matched. Otherwise just handle it as XML (default behaviour).
>>
>>
>> Greetz,
>> Rens
>>
>

+1 on reading

Greetings
Sebastian


More information about the TYPO3-team-core mailing list