Skip to content

Instantly share code, notes, and snippets.

@alrnz
Last active May 8, 2019 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alrnz/93d94ebe26711b0b46ce to your computer and use it in GitHub Desktop.
Save alrnz/93d94ebe26711b0b46ce to your computer and use it in GitHub Desktop.
direct_mail_subscription additional #TypoScript #TYPO3
plugin.feadmin.dmailsubscription {
pid = 425
templateFile = fileadmin/templates/html/dmailsubscription/dmailsubscrip_de.html
cObjects {
CATLIST = USER
CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
CATLIST {
templateFile = fileadmin/templates/html/dmailsubscription/dmailsubscrip_de.html
pid = 425
hideNonTranslatedCategories = 1
}
}
cObjects >
email.from = noreply@mail.de
email.fromName = My name is From
email.admin = al@mail.de
email.field = email
// Edit setup
edit = 0
edit {
fields = email
defaultValues.module_sys_dmail_html = 1
required = email
evalValues.email = uniqueLocal, email
userFunc_afterSave = user_dmailsubscribe->saveRecord
}
// Create setup
create = 1
create {
userFunc_afterSave = user_dmailsubscribe->saveRecord
preview = 0
# only there fields where updated!
fields = email, hidden
defaultValues.module_sys_dmail_html = 1
defaultValues.email =
required = email
noSpecialLoginForm = 1
overrideValues.hidden = 1
evalValues.email = uniqueLocal,email
}
evalErrors.email.uniqueLocal = Deine <b>E-Mail-Adresse</b> ist bereits registriert.
evalErrors.email.email = Bitte gebe eine gültige <b>E-Mail-Adresse</b> an.
wrap1.wrap = <h2> | </h2>
wrap2.wrap = <div class="notification"> | </div>
}
@alrnz
Copy link
Author

alrnz commented Jan 14, 2015

Wichtig: nur die hier angegebenen Felder werden geändert, nur "overrideValues.hidden = 1" klappt nicht!
(Important: only these fields are updated! )
plugin.feadmin.dmailsubscription.create.fields = email, hidden

TYPO3, 6.2 directmail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment