[TYPO3] Svar: sr_feuser_register and datefield

Sune Brodersen Sune at talefod.dk
Tue Oct 2 12:06:56 CEST 2007


Hi List,
 
I found the solution. I just needed to make it a normal input field in the
HTML:

 
<input id="tx-srfeuserregister-pi1-tx_uk90dcdbfields_90dc_startdate"
type="text" class="tx-srfeuserregister-pi1-text" size="40" maxlength="100"
title="###TOOLTIP_NAME###"
name="FE[fe_users][tx_uk90dcdbfields_90dc_startdate]" />
 
instead of 
 
###TCA_INPUT_tx_uk90dcdbfields_90dc_startdate###
 

And then add the following TS in the setup:
 
plugin.tx_srfeuserregister_pi1.edit.evalValues.tx_uk90dcdbfields_90dc_startd
ate = date
 
 
Sometimes it helps to read the documentation a second time :)
 
 
/Sune
 


>>> Sune Brodersen<Sune at talefod.dk> 02-10-2007 11:24 >>>
Hi List,

Im having trouble adding a new datefield in the sr_feuser_register plugin.
I
have succesfully added other type of fields. It gets displayed right, but
when i submit the form the data is not saved and i get no errormessage or
anything. The field that gets rendered is a text input. But its empty. If i
go the backend and put in some value dosent change this.

My field is called "tx_uk90dcdbfields_90dc_startdate"


Here are my HTML:

<!-- ###SUB_INCLUDED_FIELD_tx_uk90dcdbfields_90dc_startdate### -->
<dt>
  <label
for="tx-srfeuserregister-pi1-tx_uk90dcdbfields_90dc_startdate">###LABEL_TX_U

K90DCDBFIELDS_90DC_STARTDATE###</label>
  <span
class="tx-srfeuserregister-pi1-required">###REQUIRED_TX_UK90DCDBFIELDS_90DC_

STARTDATE###</span>
</dt>
<dd>
  <!-- ###SUB_ERROR_FIELD_tx_uk90dcdbfields_90dc_startdate### -->
  <p
class="tx-srfeuserregister-pi1-error">###EVAL_ERROR_FIELD_tx_uk90dcdbfields_

90dc_startdate###</p>
  <!-- ###SUB_ERROR_FIELD_tx_uk90dcdbfields_90dc_startdate### -->
  <!-- ###SUB_REQUIRED_FIELD_tx_uk90dcdbfields_90dc_startdate### -->
  <p
class="tx-srfeuserregister-pi1-error">###MISSING_TX_UK90DCDBFIELDS_90DC_STAR

TDATE###</p>
  <!-- ###SUB_REQUIRED_FIELD_tx_uk90dcdbfields_90dc_startdate### -->
  ###TCA_INPUT_tx_uk90dcdbfields_90dc_startdate###
</dd>
<!-- ###SUB_INCLUDED_FIELD_tx_uk90dcdbfields_90dc_experience### -->

And here are my TS:

Constants:
plugin.tx_srfeuserregister_pi1.enableAdminNotifyConfirmation = 0
plugin.tx_srfeuserregister_pi1.enableEmailOnDelete = 0
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnApprove = 0
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnRegister = 0
plugin.tx_srfeuserregister_pi1.enableEmailOnUpdate = 0
plugin.tx_srfeuserregister_pi1.enableEmailOnRefuse = 0
plugin.tx_srfeuserregister_pi1.enablePreviewEdit = 0
plugin.tx_srfeuserregister_pi1.enableEmailConfirmation = 0
plugin.tx_srfeuserregister_pi1.enableEmailOnApprove = 0
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnUpdate = 0
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnDelete = 0
plugin.tx_srfeuserregister_pi1.enableAutoLoginOnCreate = 1
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnAdminAccept = 0
plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnAdminRefuse = 0
plugin.tx_srfeuserregister_pi1.enablePreviewRegister = 0
plugin.tx_srfeuserregister_pi1.enableEmailOnRegister = 0
plugin.tx_srfeuserregister_pi1.useEmailAsUsername = 1
plugin.tx_srfeuserregister_pi1.editPID = 5
plugin.tx_srfeuserregister_pi1.registerPID = 4
plugin.tx_srfeuserregister_pi1.pid = 6
plugin.tx_srfeuserregister_pi1.siteName = 90 Days Challange
plugin.tx_srfeuserregister_pi1.userGroupUponRegistration = 1

Setup:
plugin.tx_srfeuserregister_pi1.edit.fields =
tx_uk90dcdbfields_90dc_startdate
plugin.tx_srfeuserregister_pi1.edit.required =
tx_uk90dcdbfields_90dc_startdate
plugin.tx_srfeuserregister_pi1.edit.evalValues >

Any ideas?

/Sune





More information about the TYPO3-english mailing list