[Typo3] Re: extending sr_feuser_register

Raymond Hayes openedge1 at gmail.com
Fri Feb 25 16:58:24 CET 2005


I will join you in your frustration. I also cannot get this to work. I
have reviewed the various posts on the mailing lists, and followed the
tutorial for SRFE. None of this works. I have created my own
extension, added the fields to the .tmpl file, added the code to setup
and constants, and nothing works. I still get...
###LABEL_CHURCH_NAME###
###REQUIRED_CHURCH_NAME###
What is the secret to making this work? I cannot even get the field to
display to add the data to my database.
Can anyone help?
Thank you
Raymond Hayes

(As per tutorial...the steps that have been followed is like so..)
#1. Create extension. This adds 1 field to fe_users called church_name.
#2. Add new fields to .tmpl file..
#3. Make changes to SRFE Typoscript in backend (add the new field)
#4. Added language labels.

--------------------------------------
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



More information about the TYPO3-english mailing list