[TYPO3-dev] flexform not working properly

Tobias Grønlund tobias at edev.dk
Tue Jul 25 11:35:29 CEST 2006


Hi,

Dmitry Dulepov skrev:
> Hi!
> 
> Tobias Grønlund wrote:
>> Im in the proces of setting up a ext. with at flexform, but i cant get 
>> it to work properly. More precisely the ext. doesnt read the starting 
>> point properly. It stores the xml, and i am able to call the 
>> startingpoint set in the flexform with 
>> pi_getFFvalue($this->cObj->data['pi_flexform'], 'pages', 'sDEF')
> 
> Show your XML, please.
> 
> Dmitry.

sure thing, but i dont think it's the xml that's wrong, because the php 
can extract the startingpoint, it just cant tell typo3 that it's there 
the data have to come from:

<T3DataStructure>
	<sheets>
		<sDEF>
			<ROOT>
				<TCEforms>
			 
<sheetTitle>LLL:EXT:ve_guestbook/locallang_tca.php:ve_guestbook.pi_flexform.sheet_general</sheetTitle>
				</TCEforms>
				<type>array</type>
				<el>

					<what_to_display>
						<TCEforms> 
<label>LLL:EXT:ve_guestbook/locallang_tca.php:ve_guestbook.pi_flexform.what_to_display</label>
						<config>
							<type>select</type>
							<items type="array">
								<numIndex index="0" type="array">
									<numIndex index="0">LIST</numIndex>
									<numIndex index="1">LIST</numIndex>
								</numIndex>
									<numIndex index="1" type="array">
									<numIndex index="0">TEASER</numIndex>
								<numIndex index="1">TEASER</numIndex>
								</numIndex>
								<numIndex index="3" type="array">
									<numIndex index="0">FORM</numIndex>
									<numIndex index="1">FORM</numIndex>
								</numIndex>
							</items>	
							<maxitems>1</maxitems>
							<size>1</size>
						</config>
						</TCEforms>
					</what_to_display>	

   		<pages>
		  	<TCEforms>
			<exclude>1</exclude>
			<label>LLL:EXT:lang/locallang_general.php:LGL.startingpoint</label>
			<config>
				<type>group</type>
				<internal_type>db</internal_type>
				<allowed>pages</allowed>
				<size>3</size>
				<maxitems>22</maxitems>
				<minitems>0</minitems>
				<show_thumbs>1</show_thumbs>
			</config>
		  	</TCEforms>
		  </pages>
		<recursive>
		  	<TCEforms>
			<label>LLL:EXT:lang/locallang_general.php:LGL.recursive</label>
				<config>
					<type>select</type>
					<items type="array">
						<numIndex index="0" type="array">
							<numIndex index="0"></numIndex>
							<numIndex index="1"></numIndex>
						</numIndex>					
						<numIndex index="1" type="array">
							<numIndex 
index="0">LLL:EXT:cms/locallang_ttc.php:recursive.I.1</numIndex>
							<numIndex index="1">1</numIndex>
						</numIndex>
						<numIndex index="2" type="array">
							<numIndex 
index="0">LLL:EXT:cms/locallang_ttc.php:recursive.I.2</numIndex>
							<numIndex index="1">2</numIndex>
						</numIndex>
						<numIndex index="3" type="array">
							<numIndex 
index="0">LLL:EXT:cms/locallang_ttc.php:recursive.I.3</numIndex>
							<numIndex index="1">3</numIndex>
						</numIndex>
						<numIndex index="4" type="array">
							<numIndex 
index="0">LLL:EXT:cms/locallang_ttc.php:recursive.I.4</numIndex>
							<numIndex index="1">4</numIndex>
						</numIndex>
						<numIndex index="5" type="array">
							<numIndex 
index="0">LLL:EXT:cms/locallang_ttc.php:recursive.I.5</numIndex>
							<numIndex index="1">250</numIndex>
						</numIndex>
					</items>
					<minitems>0</minitems>
					<maxitems>1</maxitems>
					<size>1</size>
				</config>
			</TCEforms>
		  </recursive>
	    </el>
	  </ROOT>
     </sDEF>
   </sheets>
</T3DataStructure>




More information about the TYPO3-dev mailing list