[TYPO3] problem with extending sr_feuser_register
Stanislav Rusnák
monstrozita at gmail.com
Fri Aug 11 12:34:31 CEST 2006
Ralf Hettinger wrote / napísal(a):
> Have you checked case sensitivity?
>
> Because sr_feuserregister is somewhat case sensitive. So you better stick to the
> conventions implied by the rest of the default template:
>
> - use lower case for the fieldname in the database (this is what all databases
> should support, so it's a smart thing to do anyways)
>
> - use lower characters for you pi_vars (they will be shifted to upper internally
> by the extension code)
>
> - use markers the same way (and case!) the template shows you by the examples
> given through the other fields
>
> - Be sure to work with the right table (which is fe_users not fe_user as you wrote).
>
> Come back if there's still a problem ;)
>
>
Hi, I followed your advises:
1. I extended table fe_users with field named dic
2. I added this to html template (hope it has right case sensitivity):
<!-- ###SUB_INCLUDED_FIELD_dic### -->
<dt>
<label for="tx-srfeuserregister-pi1-dic">###LABEL_DIC###</label>
<span class="tx-srfeuserregister-pi1-required">###REQUIRED_DIC###</span>
</dt>
<dd>
<!-- ###SUB_ERROR_FIELD_dic### -->
<p class="tx-srfeuserregister-pi1-error">###EVAL_ERROR_FIELD_dic###</p>
<!-- ###SUB_ERROR_FIELD_dic### -->
<!-- ###SUB_REQUIRED_FIELD_dic### -->
<p class="tx-srfeuserregister-pi1-error">###MISSING_DIC###</p>
<!-- ###SUB_REQUIRED_FIELD_dic### -->
<input id="tx-srfeuserregister-pi1-dic" type="text" size="40"
maxlength="50" title="###TOOLTIP_dic###" name="FE[fe_users][dic]"
class="tx-srfeuserregister-pi1-text" />
</dd>
<!-- ###SUB_INCLUDED_FIELD_dic### -->
3. In TS template setup I add this:
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.dic =
myNewFieldLabel
And the result is same. It`s totally frustrating. I`m sure that I`m
making some stupid mistake.
Stanislav Rusnak
More information about the TYPO3-english
mailing list