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

Rens Admiraal renst3 at rensnel.nl
Thu Feb 10 08:12:49 CET 2011


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
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 17532_v2.diff
Type: text/x-diff
Size: 945 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110210/e2815384/attachment-0001.diff>


More information about the TYPO3-team-core mailing list