[TYPO3-UG Italy] R: aggiungere campi form Front End User Registration

De Contardi Riccardo Riccardo.DeContardi at bhuman.it
Thu Jan 20 14:42:21 CET 2011


Mhh..non mi ricordo se la cosa c'entrava, ma quando parecchio tempo fa ho aggiunto pure io la checkbox per la privacy, per farla funzionare avevo aggiunto all'estensione creata col kickstarter il file ext_localconf.php con dentro:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_feuser_register']['extendingTCA'][] = 'tx_aggiungicampi_privacycheck';


--------------------------------------------
Riccardo De Contardi - Web Developer
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
TEL +39-02-20.23.271 - FAX +39-02-20.240.561
--------------------------------------------


-----Messaggio originale-----
Da: typo3-ug-italy-bounces at lists.typo3.org [mailto:typo3-ug-italy-bounces at lists.typo3.org] Per conto di Gianni
Inviato: giovedì 20 gennaio 2011 13:18
A: typo3-ug-italy at lists.typo3.org
Oggetto: [TYPO3-UG Italy] aggiungere campi form Front End User Registration

Ciao a tutti,
ho un problema con l'estensione Front end user registration Più precisamente ho un problema con l'aggiunta di 2 campi nel form di registrazione, un campo di testo non modificabile con il testo della privacy e un checkbox per accettare la privacy.

Ho seguito tutte le guide possibili e immaginabili presenti sul web, e quindi:
- Ho creato l'estensione per aggiungere i campi al db, il primo campo è stato chiamato tx_aggiungicampi_privacytext e il secondo tx_aggiungicampi_privacycheck
- Ho modificato il file xml della lingua ed ho inserito i record relativi ai nuovi campi
- Ho modificato il template inserendo ciò che mancava per i nuovi campi, nelle giuste posizioni, e li ho chiamati allo stesso modo di come sono stati chiamati nel db, riporto il codice del template relativo ai nuovi campi:

	<!-- ###SUB_INCLUDED_FIELD_tx_aggiungicampi_privacytext### -->
	<dt>
		<label for="tx-srfeuserregister-pi1-tx_aggiungicampi_privacytext">###LABEL_TX_AGGIUNGICAMPI_PRIVACYTEXT### ###REQUIRED_TX_AGGIUNGICAMPI_PRIVACYTEXT###</label>
	</dt>
	<dd>
		<!-- ###SUB_ERROR_FIELD_tx_aggiungicampi_privacytext### -->
		<p class="tx-srfeuserregister-pi1-error">###EVAL_ERROR_FIELD_tx_aggiungicampi_privacytext###</p>
		<!-- ###SUB_ERROR_FIELD_tx_aggiungicampi_privacytext### -->
		<!-- ###SUB_REQUIRED_FIELD_tx_aggiungicampi_privacytext### -->
		<p class="tx-srfeuserregister-pi1-error">###MISSING_TX_AGGIUNGICAMPI_PRIVACYTEXT###</p>
		<!-- ###SUB_REQUIRED_FIELD_tx_aggiungicampi_privacytext### -->
		###TCA_INPUT_tx_aggiungicampi_privacytext###
	</dd>
	<!-- ###SUB_INCLUDED_FIELD_comments### -->

	<!-- ###SUB_INCLUDED_FIELD_tx_aggiungicampi_privacycheck### -->
	<dt>
		<label for="tx-srfeuserregister-pi1-tx_aggiungicampi_privacycheck">###LABEL_TX_AGGIUNGICAMPI_PRIVACYCHECK### ###REQUIRED_TX_AGGIUNGICAMPI_PRIVACYCHECKL###</label>
	</dt>
	<dd>
		<!-- ###SUB_REQUIRED_FIELD_tx_aggiungicampi_privacycheck### -->
		<p class="tx-srfeuserregister-pi1-error">###MISSING_TX_AGGIUNGICAMPI_PRIVACYCHECK###</p>
		<!-- ###SUB_REQUIRED_FIELD_tx_aggiungicampi_privacycheck### -->
		###TCA_INPUT_tx_aggiungicampi_privacycheck###
	</dd>
	<!-- ###SUB_INCLUDED_FIELD_tx_aggiungicampi_privacycheck### -->

Il file della lingua l'ho modificato nella cartella che risiede in /typo3conf/l10n/it/sr_feuser_register

Se andate sulla pagina di registrazione http://www.calendarioromano.it/il-calendario/registrazione/ potete vedere che non mi vengono interpretate le nuove etichette Dove sbaglio????

Attendo consigli...

Grazie e a presto
Gianni
_______________________________________________
TYPO3-UG-Italy mailing list
TYPO3-UG-Italy at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy

**************************************************

Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.




More information about the TYPO3-UG-Italy mailing list