[TYPO3] problem adding fields in sr_feuser_register extension
POIRIER David
DPOIRIER at cross-systems.com
Wed Apr 11 15:17:26 CEST 2007
Kuldev,
I agree that the chapter 1.6 is not exactly crystal clear in its
explanations...
What is important:
- You must first create an extension using the kickstarter wizard. This
extension must extend your fe_users table adding the field that you
want.
- By default, the kickstarter always prefix newly created fields with
tx_. For example, I've created a field with the extension key
fecustomfield_worktitle and the corresponding column in the database is
tx_fecustomfield_worktitle. Check yours using PHPMyAdmin.
- Use the same field name for your template: (example in the CREATE
section)
<!-- ###SUB_INCLUDED_FIELD_tx_fecustomfield_worktitle### -->
<dt>
<label
for="tx-srfeuserregister-pi1-tx_fecustomfield_worktitle">###LABEL_TX_FEC
USTOMFIELD_WORKTITLE###
###REQUIRED_TX_FECUSTOMFIELD_WORKTITLE###</label>
</dt>
<dd>
<!-- ###SUB_ERROR_FIELD_tx_fecustomfield_worktitle### -->
<p
class="tx-srfeuserregister-pi1-error">###EVAL_ERROR_FIELD_tx_fecustomfie
ld_worktitle###</p>
<!-- ###SUB_ERROR_FIELD_tx_fecustomfield_worktitle### -->
<!-- ###SUB_REQUIRED_FIELD_tx_fecustomfield_worktitle### -->
<p
class="tx-srfeuserregister-pi1-error">###MISSING_TX_FECUSTOMFIELD_WORKTI
TLE###</p>
<!-- ###SUB_REQUIRED_FIELD_tx_fecustomfield_worktitle### -->
###TCA_INPUT_tx_fecustomfield_worktitle###
</dd>
<!-- ###SUB_INCLUDED_FIELD_tx_fecustomfield_worktitle### -->
- Make sure that the new field is activated in your main template setup
area:
plugin.tx_srfeuserregister_pi1 {
formFields = username, password, gender, first_name, last_name, status,
date_of_birth, email, address, city, zone, static_info_country, country,
zip, telephone, fax, language, title, company, www,
module_sys_dmail_html, module_sys_dmail_category, image, comments,
disable, tx_fecustomfield_worktitle
}
I hope it helps!
David
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Kuldev
Singh
Sent: mercredi, 11. avril 2007 14:52
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] problem adding fields in sr_feuser_register
extension
Peter Klein wrote:
> Hi kuldev. Maybe you should try reading the manual for
sr_feuser_register ?
>
http://typo3.org/documentation/document-library/extension-manuals/sr_feu
ser_register/2.5.6/view/
>
> Specially chapter 1.6 ;)
>
HI Klein thanks for your response. but i tried that one but it did not
work.
could you tell me what i should do now.
kuldev
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list