[Typo3-dev] T3DataStructure question.

Stig N. Jepsen stig at 8620.dk
Thu May 27 16:34:16 CEST 2004


> 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>

/Stig






More information about the TYPO3-dev mailing list