[TYPO3-english] sr_feuser_register selector box is empty

Kristian Søgaard krs at k67.dk
Tue Apr 7 19:42:48 CEST 2009


Hello.

I am trying to make an extension to sr_feuser_register to make room for 
some extra input from the user.

I would like to have a dropdown box with item to choose from among other 
things.

I have created the extension, and it is working fine except for one field.

The drop down (in typo 3 called a selector box) is empty in the front 
end. I have added 8 item in the kick starter. And if i switch to Radio 
button instead all 8 items show up nicely.

And in the BE it shows correctly with all the items. It is only in FE 
that it does not work

If i inspect the html i can see the box is populated with:
<option selected="selected" value="0"/>
<option value="1"/>
<option value="2"/>
<option value="3"/>
<option value="4"/>
<option value="5"/>
<option value="6"/>
<option value="7"/>

So the names of these items is empty. I figure it must be a bug since it 
works fine for radio buttons.

In ext_table i have:

============================================================================
	"tx_feusercompanyinfo_license_count" => Array (		
		"exclude" => 0,		
		"label" => 
"LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count", 
	
		"config" => Array (
			"type" => "select",
			"items" => Array (
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.0", 
"0"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.1", 
"1"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.2", 
"2"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.3", 
"3"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.4", 
"4"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.5", 
"5"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.6", 
"6"),
			 
Array("LLL:EXT:feuser_company_info/locallang_db.xml:fe_users.tx_feusercompanyinfo_license_count.I.7", 
"7"),
			),
			"size" => 1,	
			"maxitems" => 1,
		)
	),

============================================================================

And in locallang_db i have:

============================================================================
<languageKey index="default" type="array">
			
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.0">50 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.1">100 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.2">150 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.3">200 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.4">250 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.5">500 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.6">1000 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count.I.7">1000+ 
Users</label>
			<label index="fe_users.tx_feusercompanyinfo_license_count">Number of 
Users</label>
		</languageKey>


So it all appears to ok in my view. Is there anyone who knows why it 
does not show the items in the selector box ??

Most kind regards. Kristian


More information about the TYPO3-english mailing list