2016-09-15 76 views
0

我有一個20個記錄的自定義擴展。TYPO3 Powermail的多個地址

每條記錄​​都有一個電子郵件字段。

如何在powermail中將所有電子郵件地址添加爲收件人。

本示例在詳細信息頁面中僅給出此記錄的一個電子郵件地址。

plugin.tx_powermail{ 
settings.setup{ 

prefill{ 
mailadresses = RECORDS 
mailadresses { 
source.data = GP:tx_myext_list|example 
source.insertData=1 
source.intval = 1 
tables=tx_myext_domain_model_example 
conf{ 
tx_myext_domain_model_example> 
tx_myext_domain_model_example=TEXT 
tx_myext_domain_model_example{ 
field=email 
htmlSpecialChars = 1 
} 
} 
} 

回答

0

我的解決方案。或者會有問題嗎?

lib.multimail = CONTENT 
lib.multimail { 
#Welche Tabelle 
table = tx_myext_domain_model_example 
select { 
#PID/Ordner 
pidInList = 10 
#andWhere { 
# value = 1=1 
#} 
andWhere = hidden=0 
#andWhere = deleted=0 
} 
renderObj = TEXT 
#Name des Tags in der Tabelle 
renderObj.field = email 
renderObj.wrap = |, 
} 

在接收端通過Powermail:

{f:cObject(typoscriptObjectPath: 'lib.multimail')} 

感謝您的幫助。 :-)

0

so GP:tx_myext_list|example是從模型中用逗號分隔的uid列表?否則它只返回一個。如果它是一個逗號分隔的列表,intval = 1將使它只有一個整數並刪除列表。

也不需要insertData = 1,因爲您使用data =