Hallo,
ich würde gerne die Newsletteranmeldung mittels sr_email_subscribe um eigene Felder erweitern. Und zwar um die Handynummer.
Als erstes habe ich mir mit dem Kickstarter eine kleine Extension erstellt die die Tabelle tt_address um das Feld mobilephone erweitert. Diese ist auch schon installiert und in der Datenbank und über das List-Modul erreichbar.
Dann habe ich im Template folgende Zeilen hinzugefügt: (einfach phone kopiert und überall mobile vorne dran gestellt)
<!-- ###SUB_INCLUDED_FIELD_mobilephone### -->
<dt>
<label for="tx-sremailsubscribe-pi1-mobilephone">###LABEL_MOBILEPHONE### ###REQUIRED_MOBILEPHONE###</label>
</dt>
<dd>
<!-- ###SUB_ERROR_FIELD_mobilephone### -->
<p class="tx-sremailsubscribe-pi1-error">###EVAL_ERROR_FIELD_mobilephone###</p>
<!-- ###SUB_ERROR_FIELD_mobilephone### -->
<!-- ###SUB_REQUIRED_FIELD_mobilephone### -->
<p class="tx-sremailsubscribe-pi1-error">###MISSING_MOBILEPHONE###</p>
<!-- ###SUB_REQUIRED_FIELD_mobilephone### -->
<input id="tx-sremailsubscribe-pi1-mobilephone" type="text" class="tx-sremailsubscribe-pi1-text" size="25" maxlength="25" title="###TOOLTIP_MOBILEPHONE###" name="###NAME_MOBILEPHONE###" class="tx-sremailsubscribe-pi1-text" />
</dd>
<!-- ###SUB_INCLUDED_FIELD_mobilephone### -->
Die Constants
plugin.tx_sremailsubscribe.formFields
um mobilephone erweitert.
Und dann noch folgenden TS-Code ins Setup:
plugin.tx_sremailsubscribe_pi1.create.evalValues.mobilephone =
plugin.tx_sremailsubscribe_pi1._LOCAL_LANG.de {
mobilephone = Handy
mobilephone_informal = Handy
missing_mobilephone = Bitte geben Sie Ihre Handynummer ein!
}
Also das Feld wird schon mal ausgegeben und ich kann was eintragen. Aber keine der Labels wird auch nur irgendwie berücksichtigt.
Statt dessen wird einfach ###LABEL_MOBILEPHONE### ###REQUIRED_MOBILEPHONE### ###MISSING_MOBILEPHONE### ausgegeben.
Was mach ich falsch, habe ich noch irgendwas vergessen?