[Typo3] Problems rendering extended sr_feusers_register fields

Jason Brock jasonrbrock at gmail.com
Tue May 31 18:16:05 CEST 2005


Hi,

I've extended the fe_users table via an extension created with the
kickstarter, and I've added the appropriate subparts to the sr_feusers
tmpl file. I've also added the various lang stuff to my TS config, but
I can't get sr_ to recognise my labels!!

Can anyone provide some advice?

Here's my "stuff"...

1. Using the kickstarter I created an extension called "tx_Healthregistration"
2. The extension added a bunch of new fields to the fe_users table,
eg: "tx_Healthregistration_practice_type"
3. I've added my new fields to the sr_ tmpl file, eg:

[code]

<!--###SUB_REQUIRED_FIELD_practice_type###-->					
 <span class="form_error">
  <p>###GW2B######EVAL_ERROR_FIELD_practice_type######GW2E###</p>					
  <p>###GW2B######MISSING_PRACTICE_TYPE######GW2E###</p>				
 </span>
 <!--###SUB_REQUIRED_FIELD_practice_type###-->
 <!--###SUB_INCLUDED_FIELD_practice_type###-->	
  <tr>
    <td valign="top"><span
class="regoForm_mandatory">###REQUIRED_PRACTICE_TYPE###</span>###LABEL_PRACTICE_TYPE###</td>
  <td>
    <select name="FE[fe_users][tx_Healthregistration_practice_type]"
id="tx_Healthregistration_practice_type" class="input_text_med">
				<option value="1" />Option 1
				<option value="2" />Option 2				
			</select>			
		</td>
	</tr>	
	<!--###SUB_INCLUDED_FIELD_practice_type###-->	

[code]

Then I added references to my Constants TS template:

[code]

plugin.tx_srfeuserregister_pi1 {  
  formFields = practice_type
  requiredFields = practice_type
  }

To my Setup TS Template:

plugin.tx_srfeuserregister_pi1 {	
	_LOCAL_LANG.default.practice_type = Your area of practice
	_LOCAL_LANG.default.evalErrors_evalRuleName_practice_type = Practice
Type Eval Rule Name

create = 1
create {
preview = {$plugin.tx_srfeuserregister_pi1.enablePreviewRegister}
fields = {$plugin.tx_srfeuserregister_pi1.formFields}
evalValues {
practice_type =
}

}

[code]

When I view the page, I get all of the "default" fields, but for my
extended fields all I get is:
###MISSING_PRACTICE_TYPE###
###REQUIRED_PRACTICE_TYPE### 
###LABEL_PRACTICE_TYPE###

Thx in advance,
Jason.
-~-



More information about the TYPO3-english mailing list