th_mailformplus

Installation

Installieren der Extension th_mailformplus Version 3.9.0. Anhaken von Use references to templates instead bei der Installation.

Konfiguration

Seite

Anlegen einer Seite für Kontakt

Template

Anlegen eines Templates  knolledge -Mail mit folgendem Code. Das Template der Kontakt Seite zuweisen.

####################################
#                                  #
# ext: th_mailformplus             #
#                                  #
####################################

# Mail shows full path...
plugin.tx_thmailformplus_pi1.fieldConf.photo {
    fileUpload = uploads/pics/
    uploadedFiles.mail {
        plainTemplate = ###filePath######fileName###\n
    }
}
 uploadedFiles.mail.HTMLTemplate = <a href="documentation/document-library/extension-manuals/th_mailformplus/3.9.0/view/1/3/###filePath######fileName###">###fileName###</a><br>



####################################
#                                  #
# 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:3,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 {
  name.errorText = * 
  subject.errorText = * 
  email.errorText = * 
  phone.errorText = * 
  topic.errorText = * 
  text.errorText = * 

  email.errorCheck = email
}

Content

EIn Content-Element des Typs mailformplus anlegen.

mandatory field : name,subject,email,phone,topic,text
Wählen des Templates fileadmin/templates/contact_form_de.html.

Achtung: wid als absoluter Pfad gespeichert - muss also z.B. beim Duplizieren einer Seite nochmal gesetzt werden)

Content des Typs plugin / mailformplus anlegen.

Stylesheet

Folgendes in das Stylesheet aufnehmen:

/* --- Formulare --- */
label.left {
    float: left;
    text-align: left;
    width: 70px;
    margin-right: 5px;
}

input[type=text], select, textarea {
      float: left;
    margin-bottom: 5px;
      border-width: 1px;
      border-style: solid;
      border-color: D79272;
}

input.right {
    float: left;
    width: auto;
    clear: both;
    margin-left: 75px;
    margin-right: 5px;
}

input.middle, label.middle{
    float: left;
    width: auto;
    clear: none;
    margin-left: 0px;
    margin-right: 5px;
   
}

form br {
   clear: both;
}

/* --- Formulare: Schriften & Farben --- */
input, select, textarea {
    font-family: Verdana, Geneva, Arial, Helvetica, SunSans-Regular, sans-serif;
    font-size: 12px;
    background-color: #EAD5CB;
}

/* --- Formulare: Grössen --- */
input[name=subject] {
     width: 200px;
}

input[type=text], select {
     width: 200px;
}

textarea {
     width: 200px;
}

Erstellt: 07/2010| Geändert: 10/2015

Bugs

Das Feld email_html_as_attachment wird nicht angelegt. Erzeugt Fehler beim Suchen im Backend.

In ext_tables.sql aufnehmen und Extensionmanager Update Extension.

email_html_as_attachment int(11) DEFAULT '0' NOT NULL,

Erstellt: 07/2010| Geändert: 10/2015