简体   繁体   中英

Use Powermail in Typo3 6.2.4

I'm using typo3 6.2.4 and 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. I have active the static "Main Template" and "Add basic 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)

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:

# 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.

Just thinking with you here, did you add this as a template in the typoscript template configuration? Like

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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