[TYPO3-english] Need "Activate Newsletter" check box in Front End User Profile
rsbrux
rsbrux at yahoo.com
Sat Mar 15 18:30:56 CET 2014
I was using the field "module_sys_dmail_newsletter" in fe_users to track whether or not users wanted to receive e-mail, but then discovered that it was being reset (to 0) each time a user edited his profile. Aside from this, I would like to give our users the ability to select or deselect newsletters when registering or updating their profiles. We are using TYPO3 4.5.32 with the following relevant extension versions:
direct_mail (version 2.7.0)
direct_mail_subscription (version 1.1.1)
sr_feuser_register (version 2.6.1)
The following all include "module_sys_dmail_newsletter":
Constants:
plugin.tx_srfeuserregister_pi1.formFields
Setup:
plugin.tx_srfeuserregister_pi1.create.fields
plugin.tx_srfeuserregister_pi1.edit.fields
plugin.tx_srfeuserregister_pi1.invite.fields
I have also added the following section under the corresponding headings in "tx_srfeuserregister_pi1_css_tmpl.html":
<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_newsletter### -->
<dt>
<label for="tx-srfeuserregister-pi1-module_sys_dmail">###LABEL_MODULE_SYS_DMAIL_NEWSLETTER### ###REQUIRED_MODULE_SYS_DMAIL_NEWSLETTER###</label>
</dt>
<dd>
<!-- ###SUB_ERROR_FIELD_module_sys_dmail_newsletter### -->
<p class="tx-srfeuserregister-pi1-error">###EVAL_ERROR_FIELD_module_sys_dmail_newsletter###</p>
<!-- ###SUB_ERROR_FIELD_module_sys_dmail_newsletter### -->
<!-- ###SUB_REQUIRED_FIELD_module_sys_dmail_newsletter### -->
<p class="tx-srfeuserregister-pi1-error">###MISSING_MODULE_SYS_DMAIL_NEWSLETTER###</p>
<!-- ###SUB_REQUIRED_FIELD_module_sys_dmail_newsletter### -->
###TCA_INPUT_module_sys_dmail_newsletter###
</dd>
<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_newsletter### -->
As well as:
<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_newsletter### -->
<dt>###LABEL_MODULE_SYS_DMAIL_NEWSLETTER###</dt>
<dd>###TCA_INPUT_module_sys_dmail_newsletter### </dd>
<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_newsletter### -->
in the CREATE_PREVIEW section.
However, no such checkbox appears in the corresponding forms, newly registered users still don't have 'module_sys_dmail_newsletter' turned on, and those who have it set still have it reset when they edit their profiles. What am I missing?
Do I need an entry for sys_dmail_newsletter in tca.php?
If so, what should it look like?
--
Typo3 4.5.18 - 4.5.29
PHP 5.3
mySQL 5.5 x64
Windows 8 x64
More information about the TYPO3-english
mailing list