Hallo,
ich habe die Frontend User Registration um eine Checkbox erweitert (tx_srfeuserregister_pi1_tmpl.tmpl). Der Wert wird in "module_sys_dmail_category" gespeichert. Bis auf einen Punkt funktioniert alles. Wenn ich in der Checkbox einmal ein Häckchen gesetzt habe, dann lässt es sich nach dem speichern nicht mehr entfernen. Woran kann das liegen?
Muss in der "ext_typoscript_setup.txt" noch etwas ergänzt werden (bis jetzt wurde dort nichts geändert)?
Danke!
Dirk
Hm,
schade - noch keine Antwort. Liegt die Lösung des Problems vielleicht darin, dass das $TCA Feld angepasst werden muss? Wenn ich mir den Baum unter Menu/Konfiguaration anschaue, dann taucht module_sys_dmail_category dort nicht auf.
Seltsam in diesem Zusammenhang ist dann nur, warum die Variable offensichtlich aus der Tabelle ausgelsen wird. Beim aktivieren wird auch eine "1" gesetzt, beim deaktivieren aber keine "0" ?!
Gruß
Dirk
Ich glaube du musst in ext_typoscript_setup.txt von sr_feuser_register
parseValues.deinFeld = setEmptyIfAbsent
setzen. Bei mir hat das glaube ich geklappt.
T.
siehe:
https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Index.html
Hallo Tetramatrix,
vielen Dank für Deine Antwort. Gestern habe ich Deinen Vorschlag direkt ausprobiert - ärgerlicherweise hat sich ein neues Problem ergeben - ich komme nicht mehr an das Anmeldeformular ran: Edit-option is not set in TypoScript #evil#
Deinen Vorschlag hatte ich aber auch schon vorher erfolglos ausprobiert. An welcher Stelle muss der Code stehen? Ich habe eine ähnliche Zeile gefunden:
module_sys_dmail_html = setEmptyIfAbsent
Und würde in der folgenden Zeile schreiben:
module_sys_dmail_category = setEmptyIfAbsent
Anbei sende ich Dir einfach mal die ext_typoscript_setup.txt:
plugin.tx_srfeuserregister_pi1 {
templateFile = {$plugin.tx_srfeuserregister_pi1.file.templateFile}
wrap1.wrap = {$plugin.tx_srfeuserregister_pi1.wrap1}
wrap2.wrap = {$plugin.tx_srfeuserregister_pi1.wrap2}
wrap3.wrap = {$plugin.tx_srfeuserregister_pi1.wrap3}
color1.wrap = {$plugin.tx_srfeuserregister_pi1.color1}
color2.wrap = {$plugin.tx_srfeuserregister_pi1.color2}
color3.wrap = {$plugin.tx_srfeuserregister_pi1.color3}
icon_delete = {$plugin.tx_srfeuserregister_pi1.file.icon_delete}
pid = {$plugin.tx_srfeuserregister_pi1.pid}
registerPID = {$plugin.tx_srfeuserregister_pi1.registerPID}
editPID = {$plugin.tx_srfeuserregister_pi1.editPID}
confirmPID = {$plugin.tx_srfeuserregister_pi1.confirmPID}
confirmType = {$plugin.tx_srfeuserregister_pi1.confirmType}
loginPID = {$plugin.tx_srfeuserregister_pi1.loginPID}
defaultCODE = {$plugin.tx_srfeuserregister_pi1.defaultCODE}
formName = {$plugin.tx_srfeuserregister_pi1.formName}
onChangeCountryAttribute = {$plugin.tx_srfeuserregister_pi1.onChangeCountryAttribute}
# you may modify here the conditions under which an attachment file will be added to the email
addAttachment = {$plugin.tx_srfeuserregister_pi1.enableEmailAttachment}
addAttachment.cmd = setfixed
addAttachment.sFK = APPROVE
addAttachment.file = {$plugin.tx_srfeuserregister_pi1.file.attachmentFile}
create = 1
create {
preview = {$plugin.tx_srfeuserregister_pi1.enablePreviewRegister}
fields = {$plugin.tx_srfeuserregister_pi1.formFields}
required = {$plugin.tx_srfeuserregister_pi1.requiredFields}
defaultValues {
module_sys_dmail_html = 1
disable = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
}
overrideValues {
usergroup = {$plugin.tx_srfeuserregister_pi1.userGroupUponRegistration}
disable = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
}
evalValues {
password = twice, atLeast[{$plugin.tx_srfeuserregister_pi1.passwordAtLeast}], atMost[{$plugin.tx_srfeuserregister_pi1.passwordAtMost}]
username = uniqueLocal, atLeast[{$plugin.tx_srfeuserregister_pi1.usernameAtLeast}], atMost[{$plugin.tx_srfeuserregister_pi1.usernameAtMost}]
email = email,atMost[255],uniqueLocal
##email = email,atMost[255]
name = atMost[{$plugin.tx_srfeuserregister_pi1.nameAtMost}]
first_name = atMost[50]
last_name = atMost[50]
date_of_birth = date
company = atMost[50]
city = atMost[40]
zip = atMost[20]
telephone = atMost[25]
fax = atMost[25]
image = upload
title =
address =
www = wwwURL
}
}
setfixed = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
setfixed.APPROVE {
_FIELDLIST = uid,pid,usergroup
usergroup = {$plugin.tx_srfeuserregister_pi1.userGroupAfterConfirmation}
disable = 0
}
enableAutoLoginOnConfirmation = {$plugin.tx_srfeuserregister_pi1.enableAutoLoginOnConfirmation}
autoLoginRedirect_url = {$plugin.tx_srfeuserregister_pi1.autoLoginRedirect_url}
setfixed.DELETE {
_FIELDLIST = uid,pid
}
authcodeFields = {$plugin.tx_srfeuserregister_pi1.authcodeFields}
authcodeFields.codeLength = {$plugin.tx_srfeuserregister_pi1.codeLength}
invite < .create
edit < .create
edit {
preview = {$plugin.tx_srfeuserregister_pi1.enablePreviewEdit}
defaultValues {
disable = 0
module_sys_dmail_html >
}
overrideValues {
username =
usergroup >
disable = 0
}
evalValues {
username = unsetEmpty
usergroup = unsetEmpty
}
}
infomail = 0
forceFileDelete = {$plugin.tx_srfeuserregister_pi1.forceFileDelete}
parseValues {
username = nospace,trim
email = lower,nospace,trim
password = trim,nospace
name = trim
first_name = trim
last_name = trim
date_of_birth = date
title = trim
company = trim
city = trim
zip = trim
image = files
module_sys_dmail_html = setEmptyIfAbsent
www = wwwURL
}
parseFromDBValues {
date_of_birth = adodb_date
}
parseToDBValues {
date_of_birth = adodb_date
}
email.from = {$plugin.tx_srfeuserregister_pi1.email}
email.fromName = {$plugin.tx_srfeuserregister_pi1.siteName}
email.admin = {$plugin.tx_srfeuserregister_pi1.email}
email.field = email
email.HTMLMail = {$plugin.tx_srfeuserregister_pi1.enableHTMLMail}
email.HTMLMailCSS = {$plugin.tx_srfeuserregister_pi1.HTMLMailCSS}
email.CREATE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableEmailOnRegister}
email.EDIT_SAVED = {$plugin.tx_srfeuserregister_pi1.enableEmailOnUpdate}
email.DELETE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableEmailOnDelete}
email.SETFIXED_APPROVE = {$plugin.tx_srfeuserregister_pi1.enableEmailOnApprove}
email.SETFIXED_DELETE = {$plugin.tx_srfeuserregister_pi1.enableEmailOnRefuse}
notify.CREATE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnRegister}
notify.EDIT_SAVED = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnUpdate}
notify.DELETE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnDelete}
notify.SETFIXED_CREATE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyConfirmation}
notify.SETFIXED_INVITE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyConfirmation}
notify.SETFIXED_APPROVE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnApprove}
notify.SETFIXED_DELETE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnRefuse}
_CSS_DEFAULT_STYLE (
.tx-srfeuserregister-pi1 P { font-family:Verdana, sans-serif; font-size:12px; line-height:125%; color:#35006d; margin-top:8px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-right:3px; padding-left:3px; text-indent:0px; }
.tx-srfeuserregister-pi1 A:link { background-color:transparent; color:navy; text-decoration:none; font-weight:bold;}
.tx-srfeuserregister-pi1 A:visited { background-color:transparent; color:navy; font-weight:bold; text-decoration:none; }
.tx-srfeuserregister-pi1 A:hover { background-color:transparent; color:#333333; text-decoration:none; }
.tx-srfeuserregister-pi1 A:active { background-color:transparent; color:navy; font-weight:bold; text-decoration:none; }
.tx-srfeuserregister-pi1 TD { vertical-align:top; font-family:Verdana, sans-serif; font-size:12px; line-height:125%; color:#35006d; margin-top:8px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-right:3px; padding-left:3px; text-indent:0px;}
.tx-srfeuserregister-pi1 INPUT { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
.tx-srfeuserregister-pi1 INPUT.tx-srfeuserregister-pi1-submit { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
.tx-srfeuserregister-pi1 INPUT.tx-srfeuserregister-pi1-uploader { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
.tx-srfeuserregister-pi1 INPUT.tx-srfeuserregister-pi1-icon { font-size:10px; font-family:Verdana; background-color:transparent;}
.tx-srfeuserregister-pi1 SELECT { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
.tx-srfeuserregister-pi1 TEXTAREA { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
.tx-srfeuserregister-pi1 .tx-srfeuserregister-pi1-radio INPUT { font-size:10px; font-family:Verdana; background-color:transparent; color:#35006d; font-weight:bold; vertical-align:middle; }
.tx-srfeuserregister-pi1 .tx-srfeuserregister-pi1-checkbox INPUT { font-size:10px; font-family:Verdana; background-color:transparent; color:#35006d; font-weight:bold; vertical-align:middle; }
)
_DEFAULT_PI_VARS {
}
}
Danke Tetramatrix!!!!
Lösung zu "Edit-option is not set in TypoScript " -> Backup einspielen.
Dein Tipp war richtig, nun funktioniert das Formular wie es soll.
Danke!!!
Ich hatte Deinen Ratschlag zwar vorher auch schon einmal probiert, aber vermutlich war noch irgendwo anders ein Fehler und deswegen hat es nicht geklappt.
Gruß
Dirk