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

1.7. HTML template and markers example use

Example for email for recipients

<!--###POWERMAIL_RECIPIENT_MAIL### start-->

<p>

###POWERMAIL_LOCALLANG_EMAIL_RECEIVER###<br />

###POWERMAIL_EMAILRECIPIENT_RTE###<br />

###UID12###

###POWERMAIL_ALL###

</p>

<!--###POWERMAIL_RECIPIENT_MAIL### stop-->

###POWERMAIL_LOCALLANG_EMAIL_RECEIVER###

Plugin search for a value from pi1/locallang.xml with the name locallangmarker_email_receiver (you can overwrite the xml file or set your own text via TS setup – see below)

That where your values:

###POWERMAIL_EMAILRECIPIENT_RTE###

This is a special marker for use in the email template. This marker will be filled with the backend RTE for receivers (NOTE: You can also use marker in the RTE fields)

New mail

###UID12###

Onchange JavaScript: (De)activate onchange javascript for select fields - adds an onchange javascript to all select fields - automatic submit onchange

George Smith

###UID12_0###

If you use values in sencond level (like checkboxes with tx_powermail_pi1[uid3][0]) than you can use this marker. NOTE: If you want to display all values of the checkbox, simply use ###UID12###

Values: red, blue, green

###POWERMAIL_ALL###

This marker shows all values of all fields. Helpful if you have a long form.

Name: GeorgePrename: SmithYears: 34Country: USA

###POWERMAIL_BASEURL###

This marker simply enters the base url like http://www.test.de (Helpful if you want to load graphics in the email from your website)

http://www.test.de

Changing locallang files in the backend via typoscript:

plugin.tx_powermail_pi1._LOCAL_LANG.en {

locallangmarker_confirmation_back = Back to form

locallangmarker_email_receiver = Thank you for your datas

}

plugin.tx_powermail_pi1._LOCAL_LANG.de {

locallangmarker_confirmation_back = Zurück zum Formular

locallangmarker_email_receiver = Wir haben Ihre Gewinnspielantworten erhalten

}

You can use this both locallang files for example in the html templates by using:

###POWERMAIL_LOCALLANG_CONFIRMATION_BACK###

###POWERMAIL_LOCALLANG_EMAIL_RECEIVER###