2016-12-15 10 views

答えて

7

は:

ステップ1

は基本的に必要な2つの手順があります:PowerMailを私はそのために非常に簡単な解決策を見つけました選択フィールドのオプションの値。 選択フィールドにオプションに値を追加する必要があります。これはあなたのオプションにパイプ|を追加することによって行われ、単にそれに加えて値

MyRecieverEmail 1 | 1 

MyRecieverEmail 2 | 2 

MyRecieverEmail 3 | 3 

を追加することができ、あなたのフィールドのマーカー/変数/個々のフィールド名を知っている必要があります。あなたのフィールドのextendedタブでその名前を見つけることができます。

このフィールドには、必要に応じて「独自の」変数名を付けることもできます。変数は、{}でラップされていますが、今、あなたはあなたのsetupfieldにいくつかのTSを追加する必要はありませんこれらのステップ2

ステップ2

でます。

背景情報:基本的に、これはフォームのレシーバを変更します。

plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT 
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = [email protected] 

今、あなたはウィッヒオプションはフォームで選びだしたチェックする必要があります。これは、世界的な条件で行われます。

yourVariableFieldname分野でextendedタブから個々のフィールド名ISTと1は、最初のオプション(MyRecieverEmail 1)の値である
[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1] 

これをTS使用することにより、

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1] 
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT 
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = [email protected] 
[global] 

あなたは今、あなたが必要なだけの条件を追加することができます。フォームは、最初のオプションMyRecieverEmail 1がフォームで選びだしている場合[email protected]に送信されます。完全な例は次のようになります。

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1] 
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT 
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = [email protected] 
[global] 
[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 2] 
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT 
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = [email protected] 
[global] 
[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 3] 
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT 
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = [email protected] 
[global] 

これはあなたのこのTSを考慮した場合TYPO3、インストール中にフィールド名{} yourVariableFieldnameであらゆる分野の料金になりますのでご注意ください。 このフィールドは、複数のフォームでこのように使用すると便利です。

  1. のみフォームが配置されているページ上のTSを置く:あなたは、これが担当することにしたいいけない 場合は、これを回避するために2つのオプションがあります。

  2. あなたのグローバル状態にこれを追加することができます。

    & & [globalString = GP:tx_powermail_pi1 |メール|フォーム= 123] 123は、フォームのIDで

これは、このようになりませんでしょう:

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 2] && [globalString = GP:tx_powermail_pi1|mail|form = 123] 
+0

何を補完する - THXをノートの –

関連する問題