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

1.8. 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 (or adding new) flexible locallang markers in any html template or RTE field:

HTML example

###POWERMAIL_LOCALLANG_CONFIRMATION_BACK###

###POWERMAIL_LOCALLANG_NEWLANGUAGEMARKER###

Typoscript example

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

plugin.tx_powermail_pi1._LOCAL_LANG.en {

locallangmarker_confirmation_back = Go back

locallangmarker_newlanguagemarker = This is a new marker text

}

plugin.tx_powermail_pi1._LOCAL_LANG.de {

locallangmarker_confirmation_back = Zum Formular

locallangmarker_newlanguagemarker = Das ist ein neuer Marker Text

}

Adding new flexible typoscript markers in any html template or RTE field:

HTML example

###POWERMAIL_TYPOSCRIPT_YOURFIELD1###

###POWERMAIL_TYPOSCRIPT_YOURFIELD2###

###POWERMAIL_TYPOSCRIPT_YOURFIELD3###

Typoscript example

Add some new markers with all typoscript features (TEXT, IMAGE, COA, USER, etc...) you already know

plugin.tx_powermail_pi1.dynamicTyposcript {

yourfield1 = TEXT

yourfield1.value = this is a text

yourfield2 = TEXT

yourfield2.field = uid

yourfield3 = USER

yourfield3.userFunc = user_various->listContentRecordsOnPage

}