#################################### # # # ext: th_mailformplus # # # # by: Dev-Team # # email: dev@typoheads.at # # www: www.typoheads.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 # translate form field checkbox arrays to TYPO3 Backend checkbox arrays powMapping.[db-fieldname].[form-inputname] = [int] # crop string (e.g. form a textarea) to int number of chars cropTextArea.[db-fieldname] = [int] # enable special mappings specialMapping = 1 specialMapping { # store submission datetime in format YYYY-MM-DD HH:SS sub_datetime = [fieldname] # set timestamp (submission time) to field crdate crdate = 1 # store submission IP to field logIP = [fieldname] # store uid to a second field (reference). # Enables storage in CSV as well and # activates marker ###DB_UID### in E-Mails storeuid = [fieldname] } } ################################### # # 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 # # [either use link or submit depending on multipage_without_js] # linkDelete_start ... -start-tag # linkDelete_stop ... -end-tag # submitDelete ... name-attribute for input type="submit" (needs multipage_without_js) # submitDeleteHidden ... required for submitDelete (needs multipage_without_js) ########################### # template for all steps ########################### uploadedFiles { template = ###fileName### ###fileSize######linkDelete_start###löschen###linkDelete_stop###löschen###submitDeleteHidden###
    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
    } } } ###ERROR###
    Personal Information
    ###error_name###
    ###error_subject###
    ###error_email###
    ###error_phone###
    ###error_topic###


    Please contact me via:




    please send us your photo...

    number of allowed files: ###photo_numberOfAllowedFiles###
    allowed file types: ###photo_fileTypes###
    allowed file size per picture: ###photo_fileSize###
    already uploaded files: ###photo_numberOfUploadedFiles###
    remaining files: ###photo_numberOfRemainingFiles###
    ###error_photo######value_photo###


    number of allowed files: ###cv_numberOfAllowedFiles###
    allowed file types: ###cv_fileTypes###
    allowed file size per file: ###cv_fileSize###
    already uploaded files: ###cv_numberOfUploadedFiles###
    remaining files: ###cv_numberOfRemainingFiles###
    ###error_cv######value_cv###

    ###ADDITIONAL_MULTIPAGE###
    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