简体   繁体   English

在Typo3 6.2.4中使用Powermail

[英]Use Powermail in Typo3 6.2.4

I'm using typo3 6.2.4 and powermail 2.0.16 我正在使用typo3 6.2.4和powermail 2.0.16

I need to create a form who send a mail to me. 我需要创建一个向我发送邮件的表单。

I created the form with the page and the fields. 我用页面和字段创建了表单。 One is the name and one is the mail to test. 一个是名称,一个是要测试的邮件。

After, I created the content element with the plugin powermail and now, I need to display the form in the frontend. 之后,我使用插件powermail创建了content元素,现在,我需要在前端显示表单。 I have active the static "Main Template" and "Add basic CSS". 我已经激活了静态“主模板”和“添加基本CSS”。 I try this code but it's not working. 我尝试了此代码,但无法正常工作。

  page = PAGE
  page.10 = CONTENT
  page.10.table = tt_content
  page.10.select {

    where = colPos = 0
    orderBy = sorting
  }

  page.10.renderObj = COA
  page.10.renderObj {

    10 = TEXT
    10.field = header
    10.wrap = <div class="header">|</div>

    20 = TEXT
    20.field = bodytext
    20.wrap = <div class="bodytext">|</div>
  }

Can you help me? 你能帮助我吗?

The answer is here : Nothing appears in Typo3 with powermail (Frontend) 答案在这里: Powerpo(前端)在Typo3中什么都没有出现

It seems that you are missing the proper typoscript to actually show the form on the page. 看来您缺少正确的印刷文字,无法在页面上实际显示该表单。 The specified typoscript snippet is not enough to show the content elements on the page. 指定的拼写代码段不足以在页面上显示内容元素。

Inside your typoscript template include the css_styled_content static template and change the snippet to this: 在您的排印模板中包括css_styled_content静态模板,并将代码段更改为:

# Default PAGE object:
page = PAGE

page.10 < styles.content.get

That should ensure proper showing on the frontend. 那应该确保在前端正确显示。 This is basic as it is, if you want it to be better looking, or different templating you should take a look at templating with TYPO3 first. 这是很基本的,如果您希望它看起来更好,或者使用不同的模板,则应首先考虑使用TYPO3进行模板。

Just thinking with you here, did you add this as a template in the typoscript template configuration? 只是在这里与您一起思考,您是否已将其添加为拼写模板配置中的模板? Like 喜欢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM