[Typo3] extending sr_feuser_register
Jan Kutschera
jan at k-production.de
Thu Feb 3 10:42:15 CET 2005
I'm getting mad with extending the sr_feuser_registration. Like in the
tutorial I added an extension wich extends the feusertable.Now I have a
field named /myNewFieldName/
Then I added the Code to the template:
<!--###SUB_INCLUDED_FIELD_/myNewFieldName/###-->
<tr>
<td>
<p>###LABEL_/MYNEWFIELDNAME/### ###REQUIRED_/MYNEWFIELDNAME/###</p>
</td>
<td>
<p>###GW2B######EVAL_ERROR_FIELD_/myNewFieldName/######GW2E###</p>
<!--###SUB_REQUIRED_FIELD_/myNewFieldName/###-->
<p>###GW2B######MISSING_/MYNEWFIELDNAME/######GW2E###</p>>
<!--###SUB_REQUIRED_FIELD_/myNewFieldName/###-->
<p><input type="text" name="FE[fe_users][/myNewFieldName/]" size="40"
/></p>
</td>
</tr>
<!--###SUB_INCLUDED_FIELD_/myNewFieldName/###-->
At last I added the filed to the constants:
plugin.tx_srfeuserregister_pi1.formFields =
username,password,first_name,last_name,email,usergroup,address,city,zone,static_info_country,zip,telephone,language,title,company,www,module_sys_dmail_html,image,disable,myNewFieldName
plugin.tx_srfeuserregister_pi1.requiredFields =
username,password,first_name,last_name,email,MyNewFieldName
and to the setup I added:
plugin.tx_srfeuserregister_pi1.evalValues.MyNewFieldName =
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.de.MyNewFieldName =
myNewFieldLabel
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.de.missing_MyNewFieldName =
missingRequiredFieldMessage
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.de.missing_invitation_
MyNewFieldName = missingRequiredFieldMessageOnInvitationForm
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.de.evalErrors_evalRuleName_MyNewFieldName=
errorMessageForEvalRule
But all I get is
###LABEL_MYNEWFIELDNAME###
###REQUIRED_MYNEWFIELDNAME###
The data is stored correctly into the database. the only thing is, that
the markers are ignored.
So what am I doing wrong? Or vice versa from where does the class get
the names to replace the markers? When I take the myNewFieldName out of
the field list I don't get it displayed, so it works at that point.
Mit freundlichen Grüßen
Jan Kutschera / Projektleiter
mailto:jan at k-production.de
--
k-production Tel.: 0 55 1 / 30 54 852
Tilsiter Str 18 Fax: 0 55 1 / 30 54 841
37083 Göttingen Mobil: 0179 / 1 40 40 21
Germany Genion: 0551 / 9 96 17 69
mailto:info at k-production.de
web: http://www.k-production.de
k-production ist Mitglied des dITN at work
mailto:anfrage at ditnetwork.de web: http://www.ditnetwork.de
More information about the TYPO3-english
mailing list