Differences

This shows you the differences between two versions of the page.

english:phpwcms-system:article:contentparts:form:special-applications:php-function-include [2010/07/14 15:59]
Claus
english:phpwcms-system:article:contentparts:form:special-applications:php-function-include [2018/06/03 18:09] (current)
Line 5: Line 5:
-Since the release of r282 it is possible to process an own PHP function between the action “submit” and “sending the E-Mail”. This function can read all the form input, modify, and return it.+Since the release of r282 it is possible to process an own PHP function between the action “submit” and “sending the E-Mail”. This function can read all the form input, modify, and return it. //(Also, the transmission destination (email address) may be changed)//.
 +**These changes are not recorded in the database, because the values ​​were written into the database before the function is called.**
 +
 +\\
The function call must be registered in the form in the fields “php function:” below **"recipient template:"** or **"copy to - template:"**. //(See picture below)//. The function call must be registered in the form in the fields “php function:” below **"recipient template:"** or **"copy to - template:"**. //(See picture below)//.
Line 677: Line 680:
The process described above can be very simply used to translate e-mail text using the i18n function [[english/phpwcms_replacer_rts/integrated-tags/language-tags/i18n]] of phpwcms. The process described above can be very simply used to translate e-mail text using the i18n function [[english/phpwcms_replacer_rts/integrated-tags/language-tags/i18n]] of phpwcms.
-Assumed we write the following e-mail template:+Assuming we'll write the following e-mail template:
@@Company@@: {company} \\ @@Company@@: {company} \\
@@Subject@@: {subject} @@Subject@@: {subject}
-and want to have @@Company@@  for German e-mail recipient //(e.g. for the email copy)// as  "Firma" and/or @@Subject@@ as "Betreff" in the e-mail stand for.+and want to have @@Company@@  for German e-mail recipient //(e.g. for the email copy)// as  "Firma" and/or @@Subject@@ as "Betreff" in the e-mail stands for.
Line 699: Line 702:
**email_i18n_substitute_text** must be registered as function in backend/form cp  as described above. \\ **email_i18n_substitute_text** must be registered as function in backend/form cp  as described above. \\
-Naturally also the appropriate language file must be translated in addition.+Naturally also the appropriate language file must be translated additionally.
\\ \\
\\ \\
english/phpwcms-system/article/contentparts/form/special-applications/php-function-include.1279115998.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0