2012-02-13 61 views
2

我必須改變sr_feuser_register分機默認確認EMIAL模板,我成功地改變了每個標記的內容,但我必須將圖像插入HTML電子郵件,它不會做想工作...我試圖用te全部替換標記img標記(img src =「....」),我試過只替換src(img src =「marker」)...但是dosn't不工作。有人遇到這個問題了嗎?TYPO3的sr_feuser_register電子郵件模板不工作img標籤

+0

什麼是不工作的到底是什麼?電子郵件是否被髮送?另外請確保您以HTML格式發送郵件(設置爲「plugin.tx_srfeuserregister_pi1.email.HTMLMail = 1」)。也看看http://forge.typo3.org/projects/extension-sf_register作爲sr_feuser_register沒有被開發的任何更多.. – konsolenfreddy 2012-02-13 16:16:35

+0

我正在改寫從locallang標籤...它不到風度更換標記。 ...我已經檢查過.... email.HTMLMail = 1,沒關係。我試着用" <等來代替特殊字符(<,",>),那麼他ECOS在郵件的整個img標籤。 – 2012-02-14 10:48:04

+0

檢查sr_feuser_register ts * constants *中的formFields(也許是requiredFileds)。該字段必須在那裏列出。 – Mateng 2012-03-12 23:44:24

回答

1

請啓用HTML:

plugin.tx_srfeuserregister_pi1.create.fields = module_sys_dmail_html ..... 

plugin.tx_srfeuserregister_pi1.create.defaultValues.module_sys_dmail_html = 1 

and in template file tx_srfeuserregister_pi1_css_tmpl.html 
<!-- ###TEMPLATE_CREATE### begin --> 
........... 
    <!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_html### --> 
    <dt> 

    </dt> 
    <dd> 
     <input type="hidden" title="" name="FE[fe_users][module_sys_dmail_html]" value="test"> 
    </dd> 
    <!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_html### --> 
............. 
<!-- ###TEMPLATE_CREATE### end --> 
0

柔印的回答並沒有爲我工作。相反,我激活了Direct Mail並將HTML-Template中的dmail-Checkbox設置爲隱藏。

<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_html### --> 
... 
<div style="display:none;"><!--TCA_INPUT_module_sys_dmail_html--></div> 
... 
<!-- ###SUB_INCLUDED_FIELD_module_sys_dmail_html### --> 

此外,在常量可以設置

plugin.tx_srfeuserregister_pi1.dmailCheckedUponRegistration = 1 

以確保複選框的默認選中。