[Typo3-dev] T3DataStructure question.
Martin T. Kutschker
Martin-no5pam-Kutschker at blackbox.n0spam.net
Fri May 28 01:23:16 CEST 2004
Stig N. Jepsen wrote:
>>I'm trying to make a select type for a FlexForm, but I run into problems.
>>
>>I have something like this:
>><config>
>> <type>select</type>
>> <items>
>> <item1></item1>
>> <item2>AAA</item2>
>> <item3>BBB</item3>
>> <item4>CCC</item4>
>> </items>
>></config>
>>
>>But only the first letter of each item is displayed.
>>What am I doing wrong?
>
>
> Ok. I found a way to figure this out.
> I used the t3lib_div::array2xml() function to go the other way around, and
> it gave me this. And it works just ok.
>
> <items type="array">
> <numIndex index="0" type="array">
> <numIndex index="0">AAA</numIndex>
> <numIndex index="1">0</numIndex>
> </numIndex>
> <numIndex index="1" type="array">
> <numIndex index="0">BBB</numIndex>
> <numIndex index="1">1</numIndex>
> </numIndex>
> </items>
AFAIK this is the official way.
Masi
More information about the TYPO3-dev
mailing list