[Typo3-dev] XML vs. Serialized Arrays

Kraft Bernhard kraftb at kraftb.at
Fri Apr 8 14:17:53 CEST 2005


Martin Kutschker wrote:

> I don't recommend this. I'd rather create a new TCA type flexform2 or 
> sonething like that.

That would mean that a lot of code has to get changed ...

Hooking in into xml2array and array2xml doesn't require any further changes
in the source code. (Except on on play in tce_main.php where <?ml ...?> is added
and this must not be done when flexform2 are used ...

But creating a new TCA type would require all extension programmers to use that
type if they want fast flexforms ... but with an install tool flag the choice is
completly in the hands of the Administrator ...

Converting the old data will require one change to the TO/DS for example ... when
it get's saved for the first time after the flag switch it will get saved as serialized array...

I would place a message in the note of the Install Toll flag:
"Set this flag before you start your site so all data will be already stored as ser ar and
no XML will be used at all except for importing DS"


greets,
Bernhard




More information about the TYPO3-dev mailing list