hallo!
ich will die anmeldung zum newsletter auch zulassen, wenn der user keinen namen eingegeben hat. die required-abfragen im template und im setup hab ich rausgenommen, aber nun bleibt er nach dem submit einfach auf der gleichen seite (ohne fehlermeldung und mit ausgefüllten feldern). geb ich ins namen-feld was ein, funktioniert alles wies soll..
hat da wer eine idee?
danke auf alle faelle
joerg
Setze das ins Setup:
plugin.feadmin.dmailsubscription.create.required >
So löscht Du alle erforderllichen Felder.
Trage einfach nur die Felder ein, die erforderlich sein sollen. In dem Fall eben ohne "name" Z.B.
plugin.feadmin.dmailsubscription.create.required = title, email, module_sys_dmail_category, module_sys_dmail_html, hidden
D.
Leider funktioniert das nicht.
Bei mir will Die Anmeldung immer den Namen haben.
Problem gelöst:
ext_typoscript_constants.txt & ext_typoscript_setup.txt
leicht modifiziert.
Hallo, könntest du bitte die mal schreiben was du modifiziert hast? Danke
Rina
ändere File->
ext_typoscript_constants.txt:
so ab:
plugin.feadmin.dmailsubscription {
# cat=plugin.feadmin.dmailsubscription/file; type=file[html,htm,tmpl,txt]; label= Template File: HTML-template file
file.templateFile = EXT:direct_mail_subscription/pi/fe_admin_dmailsubscrip.tmpl
# cat=plugin.feadmin.dmailsubscription//; type=string; label= Administration email: Enter the administration email address here. This email address will be the sender email and also recieve administration notes.
email =
# cat=plugin.feadmin.dmailsubscription//; type=string; label= Administration name: Enter the administration name here. If set, this will be used as the email address name in the mails sent.
emailName =
# cat=plugin.feadmin.dmailsubscription//; type=int+; label= Record PID: If the records edited/created is located in another page than the current, enter the PID of that page here.
pid =
# cat=plugin.feadmin.dmailsubscription/typo; type=wrap; label= Wrap 1: This wrap is used in the template-file.
wrap1 = <font face="verdana" size=2 color=black> | </font>
# cat=plugin.feadmin.dmailsubscription/typo; type=wrap; label= Wrap 2: This wrap is used in the template-file.
wrap2 = <font face="verdana" size=1 color=black> | </font>
# cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 1: This bgcolor is used in the template-file.
color1 = #cccccc
# cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 2: This bgcolor is used in the template-file.
color2 = #999999
# cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 3: This bgcolor is used in the template-file.
color3 = #333333
evalErrors.email.uniqueLocal = Scheinbar ist Ihre Email Adresse bereits registriert!
evalErrors.email.email = Bitte geben Sie eine gültige Email Adresse an!
create.fields = name, hidden, email, module_sys_dmail_category, module_sys_dmail_html
create.required = name, email
edit.fields = name, hidden, email, module_sys_dmail_category, module_sys_dmail_html
edit.required = name, email
}
und ändere File->
ext_typoscript_setup.txt
so ab:
includeLibs.directmailsubscribe = EXT:direct_mail_subscription/pi/class.dmailsubscribe.php
plugin.feadmin.dmailsubscription >
plugin.feadmin.dmailsubscription = USER_INT
plugin.feadmin.dmailsubscription {
userFunc = user_feAdmin->init
includeLibs = media/scripts/fe_adminLib.inc
templateFile ={$plugin.feadmin.dmailsubscription.file.templateFile}
cObjects {
CATLIST = USER
CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
CATLIST {
templateFile = {$plugin.feadmin.dmailsubscription.file.templateFile}
pid = {$plugin.feadmin.dmailsubscription.pid}
hideNonTranslatedCategories = 0
}
}
create.userFunc_afterSave = user_dmailsubscribe->saveRecord
# Global wraps
wrap1.wrap = {$plugin.feadmin.dmailsubscription.wrap1}
wrap2.wrap = {$plugin.feadmin.dmailsubscription.wrap2}
color1.wrap = {$plugin.feadmin.dmailsubscription.color1}
color2.wrap = {$plugin.feadmin.dmailsubscription.color2}
color3.wrap = {$plugin.feadmin.dmailsubscription.color3}
// Tables + Commands
table = tt_address
// Info-mail setup
setfixed=1
setfixed.approve {
_FIELDLIST = uid
hidden = 0
}
setfixed.DELETE = 1
setfixed.DELETE._FIELDLIST = uid
delete = 1
defaultCmd=create
// Info-mail setup
infomail = 1
infomail.default {
label = FORGOTPASSWORD
}
// Edit setup
edit = 1
edit.fields = name, email, module_sys_dmail_category, module_sys_dmail_html
edit.required = name, email
edit.evalValues {
email = uniqueLocal, email
}
// Create setup
create = 1
create.preview = 0
create.fields = name, hidden, email, module_sys_dmail_category, module_sys_dmail_html
create.required = name, email
create.noSpecialLoginForm = 1
# Initially hide the user until he approves!
create.overrideValues.hidden = 1
create.evalValues {
email = uniqueLocal, email
}
authcodeFields = uid
authcodeFields.addKey =
authcodeFields.addDate =
evalErrors.email.uniqueLocal = Apparently you're already registered with this email address!
evalErrors.email.email = This is not a proper email address!
parseValues.module_sys_dmail_category = checkArray,setEmptyIfAbsent
parseValues.module_sys_dmail_html = setEmptyIfAbsent
pid = {$plugin.feadmin.dmailsubscription.pid}
email.from = {$plugin.feadmin.dmailsubscription.email}
email.fromName = {$plugin.feadmin.dmailsubscription.emailName}
email.admin = {$plugin.feadmin.dmailsubscription.email}
email.field = email
}
Danach ganz einfach in dem constants Feld im Typo3 konfigurieren und es funktioniert auch ohne Namen usw..