[TYPO3-dev] Flexform and Select

B.Wolf bw at shs-it.de
Tue Oct 20 18:19:16 CEST 2009


Hi there,

I'm trying to create a Select-Element with flexform. It works so far but 
  I have some problems...

Thats the code for the flexform:
<flexFormFeld1>
	<TCEforms>
		<label>Bezeichner Element 2</label>
		<config>
			<type>select</type>				 				<foreign_table>
					tx_mytable
				</foreign_table>
		</config>
	  </TCEforms>
</flexFormFeld1>


The table tx_mytable:
uid 	pid 	tstamp 	crdate 	cruser_id 	title
3	22	0	0	0	Human Resources
4	22	0	0	0	Management & Law
6	22	0	0	0	Science & Engeneering


The problem:
When pid > 0 everything is  fine.
But when I set the pid to 0, I don't get any options in my select.
I also tried

<foreign_table_where>
	AND tx_mytable.pid = 0
</foreign_table_where>

but it didn't help.
The strange thing is that it works fine the the 'pages'-table.
Hope anybody can help me out.
Thank a lot,
greet B




More information about the TYPO3-dev mailing list