Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.3. Configuration

Possible subsections: Reference (TypoScript)

General settings:

Property:

Data type:

Description:

Default:

templateFile

string

Sets the path to the template file.

EXT:sp_bettercontact/tx_spbettercontact.html

mailto

string

Where the message goes to

webmaster@serverip

mailfrom

string

Who sends the message

webmaster@serverip

mailerror

string

Address which is used if an error has occured

webmaster@serverip

webaddress

string

Interent address of your website

current www-address

signature

string

Who signs the mails

Webmaster

color_positive

string

Which color should the font of the positive message („Message was sent“)  have

#00CC00

color_negative

string

Which color should the font of the negative message („Message was not sent“)  have

#FF0000

regex_name

string

Regular expression for validation of the name

/^[a-zäüöÄÜÖa-ýA-Ýß0-9\-\[\]\(\)\s\.]{3,}$/i

regex_tel

string

Regular expression for validation of the phone number

/^[0-9\-\(\)\/\+\s]*$/

regex_fax

string

Regular expression for validation of the fax number

/^[0-9\-\(\)\/\+\s]*$/

regex_mail

string

Regular expression for validation of the mail address

/^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}/

regex_inquiry

string

Regular expression for validation of the inquiry

/^[[:print:][:space:]ßäüöÄÜÖa-ýA-Ý\n]{10,}$/

Example

plugin.tx_spbettercontact_pi1 {

      mailto = admin@your-domain.de

      mailfrom = Speedprogs.de <kontakt@your-domain.de>

      mailerror = error@your-domain.de

      webaddress = www.speedprogs.de
      signature = Speedprogs.de
      templateFile = fileadmin/files/sp_bettercontact.hmtl
      color_positive = #00CC00
      color_negative = #FF0000
      regex_name = /^[a-zäüöÄÜÖa-ýA-Ýß0-9\-\[\]\(\)\s\.]{3,}$/i
      regex_tel = /^[0-9\-\(\)\/\+\s]*$/
      regex_fax = /^[0-9\-\(\)\/\+\s]*$/
      regex_mail = /^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}/
      regex_inquiry = /^[[:print:][:space:]ßäüöÄÜÖa-ýA-Ý\n]{10,}$/
}

Translations:

Property:

Data type:

Default:

msg_name_problem

string

Please enter a name wich contains min. 3 and max. 50 characters and except of -[](). no more special characters

msg_name_empty

string

Please enter your name

msg_tel_problem

string

Please enter a phone number wich contains not more then 30 characters and except of +-()/ no more special characters

msg_fax_problem

string

Please enter a fax number wich contains not more then 30 characters and except of +-()/ no more special characters

msg_mail_problem

string

Please enter a valid mail address wich contains not more then 70 characters

msg_mail_empty

string

Please enter your mail address

msg_inquiry_problem

string

The inquiry have to contain min. 10 and max. 2000 characters

msg_inquiry_empty

string

Please enter an inquiry

msg_sent

string

Message was sent. Thank you.

msg_not_sent

string

A problem has occured with the entered values.

contact

string

Personal data

name

string

Name

tel

string

Phone

fax

string

Fax

mail

string

E-mail

msg

string

Message

dear

string

Dear

reply_msg1_1

string

You get this message to confirm your contact with

reply_msg1_2

string

.

reply_msg2

string

You will get an answer prompt after revision of your inquiry.

thank

string

Thank you for get in touch with

refer

string

Contact by your contact form from

refer_error1

string

Answer for contact from

refer_error2

string

could not been sent

submit

string

Submit

Example

plugin.tx_spbettercontact_pi1 {
      _LOCAL_LANG.de {
            msg_name_problem = Bitte geben Sie einen gültigen Namen ein
            msg_name_empty = Bitte geben Sie einen Namen ein
            msg_tel_problem = Bitte geben Sie eine gültige telefonnummer ein
            msg_fax_problem = Bitte geben Sie eine gültige Faxnummer ein
            msg_mail_problem = Bitte geben Sie eine gültige E-Mail Adresse ein
            msg_mail_empty = Bitte geben Sie eine E-Mail Adresse ein
            msg_inquiry_problem = Die Nachricht muss mindestens 10 Zeichen enthalten
            msg_inquiry_empty = Bitte geben Sie eine Nachricht ein
            msg_sent = Nachricht wurde versandt. Vielen Dank.
            msg_not_sent = Es ist ein Problem mit den Formulareingaben aufgetreten.
            contact = Persönliche Daten des Kontaktes
            name = Name
            tel = Telefonnummer
            fax = Faxnummer
            mail = E-Mail Adresse
            msg = Nachricht
            dear = Guten Tag
            reply_msg1_1 = Sie erhalten diese E-Mail um Ihre Kontaktaufname mit
            reply_msg1_2 = zu bestätigen.
            reply_msg2 = Nach Bearbeitung erhalten Sie umgehend eine Antwort auf Ihre Anfrage.
            thank = Vielen Dank für Ihre Kontaktaufname mit
            refer = Anfrage durch Ihr Kontaktformular von
            refer_error1 = Antwort auf Anfrage von
            refer_error2 = konnte nicht gesendet werden
            submit = Absenden
      }
}