####################################
# #
# ext: th_mailformplus #
# #
# by: Peter Luser #
# email: pl@typoheads.at #
# www: www.typoheasd.at #
# #
# donations welcome :) #
# #
####################################
####################################
# #
# EXAMPLE TypoScript settings #
# #
####################################
# TypoScript settings for saving submitted data into a DB table of your choice
####################################
plugin.tx_thmailformplus_pi1.saveDB = 1
plugin.tx_thmailformplus_pi1.saveDB {
dbTable = tt_content
# change .96. to an existing page-ID in your TYPO3 project
dbinsert=pid:96,hidden:0,CType:textpic
# if dbkey is not set: "uid" is taken
dbkey =uid
# [inputFieldName]:[DBName]
mapping=name:header,subject:bodytext,photo:image,photo2:image
}
###################################
#
# example TypoScript settings for example below:
#
###################################
######################################
# here we overwrite the default configuration for
# file uploads defined in saveDB. for one
# specific field
######################################
plugin.tx_thmailformplus_pi1.fieldConf {
email {
errorCheck = email
defaultValue.value = peter
}
cv {
numberOfAllowedFiles = 3
fileTypes = pdf,doc
fileSize = 500000
fileUpload = uploads/pics/
errorText =
CV not filled out correctly
uploadedFiles {
template = | ###fileName### ###fileSize### | ###linkDelete_start###löschen###linkDelete_stop### |
wrap =
}
uploadedFiles.mail {
plainTemplate = ###filePath######fileName###
HTMLTemplate = ###fileName###
plainWrap = File start:|file end
HTMLWrap = File start:|
file end
}
}
photo {
numberOfAllowedFiles = 2
fileTypes = jpg,gif
fileSize = 200000
fileUpload = uploads/pics/
errorText = PHOTO not filled out correctly
###########################
# template
###########################
# markers:
# fileName ... uploaded filename
# fileSize ... size of uploaded file
# linkDelete_start ... -start-tag
# linkDelete_stop ... -end-tag
###########################
# template for all steps
###########################
uploadedFiles {
template = | ###fileName### ###fileSize### | ###linkDelete_start###löschen###linkDelete_stop### |
wrap =
}
###########################
# template for PRINT-template (summary)
###########################
uploadedFiles.print {
template = | ###fileName### (###fileSize###) |
wrap =
}
###########################
# template only for mail (default for receiver and user)
###########################
uploadedFiles.mail {
plainTemplate = ###filePath######fileName###
HTMLTemplate = ###fileName###
plainWrap = File start:|file end
HTMLWrap = File start:|
file end
}
###########################
# template only for mail (receiver)
# use marker ###[name of inputfield]Receiver### in template
###########################
uploadedFiles.mailReceiver {
plainTemplate = ###filePath######fileName###\n
HTMLTemplate = ###fileName###
plainWrap = ReceiverFile start:|file end
HTMLWrap = ReceiverFile start:|
file end
}
###########################
# template only for mail (user)
# use marker ###[name of inputfield]User### in template
###########################
uploadedFiles.mailUser {
plainTemplate = ###filePath######fileName###\n
HTMLTemplate = ###fileName###
plainWrap = UserFile start:|
file end
HTMLWrap = UserFile start:|file end
}
}
}
You just filled out the following fields:
Name: ###name###
Subject: ###subject###
you uploaded the following files:
###photo###
###cv###
Thank you, your request will be answered soon.
you have uploaded the following files:
###photo###
Hello ###name### (plain),
You have just filled out the form and asked about:
###subject###
you uploaded the following files:
###photo###
###cv###
We will contact you as soon as possible,
ciao!
Hello ###name### (html),
You have just filled out the form and asked about:
###subject###
you uploaded the following files:
###photo###
###cv###
We will contact you as soon as possible,
ciao!
Hello admin (plain),
A user just filled out the form:
name: ###name###
subject: ###subject###
uploaded files:
###photo###
###cv###
please contact the user: ###email###
Hello admin (html),
A user just filled out the form:
name: ###name###
subject: ###subject###
uploaded files:
###photo###
###cv###
please contact the user: ###email###
The following errors occured:
File is too large!
File is not allowed!
insert Title