[TYPO3] HELP: FE User registration and Extra Checkboxes

Aji Johannes aji.yahya at gmail.com
Mon May 7 17:48:57 CEST 2007


Aji Johannes schrieb:
> Hello List,
> 
> could please help me, i want to add some Checkboxes(6 checkboxes) to the 
> Fe User Registration and this new Field must be Required.
> 
> i tried this:
> in ext_tables.php i add new array:type checkbox , this was ok and it was 
> saved in DB but as integer Values. like 1, 17, 18.
> my problem i want later to export my fe User to CSV, the checkbox values 
> will be exported as integer and this must not be, it must be epxorted 
> with label names.
> i heared about multiple checkbox?? any idea how to do that????
> 
> regards
> Johannes

i add new checkboxes to FE User Registration, but it seem doesnt work fine.
i do this steps:
in ext_tables.php:

'interessen' => Array (
			'exclude' => 0,
			'label' => 
'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen',
			'config' => Array (
				'type' => 'check',
				'items' => Array (
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.0', 
'0'),
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.1', 
'1'),
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.2', 
'2'),
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.3', 
'3'),
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.4', 
'4'),
				 
Array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.interessen.I.5', 
'5'),
				),
			)
		),


in locallang.xml & locallang_db.xml
i add this field:


             <label index="interessen.I.1">Produkt 1</label>
             <label index="interessen.I.2">Produkt 2</label>
             <label index="interessen.I.3">Produkt 3</label>
             <label index="interessen.I.4">Produkt 4</label>
             <label index="interessen.I.5">Produkt 5</label>
	    <label index="interessen.I.0">Produkt 6</label>
             <label index="missing_interessen">Bitte wählen Sie ein 
Produkt</label>

in my Template:
<!-- ###SUB_INCLUDED_FIELD_interessen### -->
		###LABEL_INTERESSEN### ###REQUIRED_INTERESSEN###
		###TCA_INPUT_interessen###
<!-- ###SUB_INCLUDED_FIELD_interessen### -->
		<!-- ###SUB_ERROR_FIELD_interessen### -->
		###EVAL_ERROR_FIELD_interessen###<br>
		<!-- ###SUB_ERROR_FIELD_interessen### -->
		<!-- ###SUB_REQUIRED_FIELD_interessen### -->
		###MISSING_INTERESSEN###<br>
		<!-- ###SUB_REQUIRED_FIELD_interessen### -->

Template Constants:

plugin.tx_srfeuserregister_pi1.formFields = 
gender,password,password_repeat,first_name, 
last_name,company,address,city,zip,country,telephone,email,interessen
plugin.tx_srfeuserregister_pi1.requiredFields = 
gender,password,first_name, last_name,company,email,interessen

setup.txt
create ....
evalValues ...
....
interessen =
---------------------------------

in BE i have the checkboxes and if i check it, this will saveed too.
in FE i have it too, but the LABEL_INTERESSEN cannt be readed from 
locallang.xml and when i check some boxed after submit the ERROR was 
diplaying as ###MISSING_INTERESSEN###
checkboxes will be not selected again. [it is already using Multiple 
Chechboxes]

could anybody help me please????????????????


thank you
Regards
Johannes


More information about the TYPO3-english mailing list