---
title: "Newsletter Template - Content wird nicht eingebunden"
url: "https://www.typo3.net/d/21872-newsletter-template-content-wird-nicht-eingebunden"
source: "typo3.net"
tags: ["Extensions","Direct Mail","Frage"]
created: "2005-03-01"
last_reply: "2005-03-01"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Newsletter Template - Content wird nicht eingebunden

Extensions · 1 Antwort · gestartet 2005-03-01

## Eröffnungsbeitrag

**claudia3** · 2005-03-01 · [Beitrag #1](https://www.typo3.net/d/21872-newsletter-template-content-wird-nicht-eingebunden/1)

Hallo,

habe die Extension Direct Mail installiert - und nun endlich auch zum Laufen gebracht.
Jetzt bin ich gerade dabei das Template für die HTML-Mail anzupassen. Das Design passt schon. Nur wird mir jetzt der Content nicht mehr eingebunden.
Ich habe statt das Static Template "template; NEWSLETTER" zu inkludieren folgendes direkt in das Template des Sysordners eingetragen:

Constants:

```typoscript
page.file.css = fileadmin/template/main/res/newsletter.css
page.file.template = fileadmin/template/main/newsletter_html_t3.html
PAGE_TARGET = 
content.pageFrameObj = 

## TSConstantsEditor Config
TSConstantEditor.basic {
  header = Standard Template "NEWSLETTER"
  description = This is a single-page template with no menu! It's designed to be used as a newsletter template sent as an HTML-email with the internal Direct Mail module. It's based on an HTML-template file, so the main layout of the page is depending on the content of that template. One thing excluded from the template is the top logo which is defined directly in TypoScript.
  bulletlist = HTML-template file based. Redesign it with your favourite HTML-editor! // Features content in two columns (optional). // By default headers in the margin column are based on header layout 5, which is an image-header. 
  image = gfx/NEWSLETTER_basic.gif
  1=page.file.css,page.file.template
 }
```

Setup:

```typoscript
config.insertDmailerBoundaries = 1
#xhtml
config.xmlprologue = none
config.doctypeSwitch=1
config.doctype = xhtml_trans
config.xhtml_cleaning = all
config.htmlTag_langKey = de-DE
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"
config.metaCharset = iso-8859-1

# Setting up page
page = PAGE
page.typeNum = 0
page.stylesheet = {$page.file.css}
page.bodyTag = <body>
 
page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = {$page.file.template}
  workOnSubpart = DOCUMENT_BODY
  marks.CONTENT = COA
  marks.CONTENT{
    10 < styles.content.get
    }
}
config.intTarget = {$PAGE_TARGET}
page.headerData.999 < plugin.meta
 
## HTML mail ping:
page.20 = TEXT
page.20.value = <img src=t3lib/gfx/dmailerping.gif width=1 height=1 dmailerping=1>
 
## Plain text setup:
lib.alt_plaintext.renderObj.header.2 {
  preLineChar = 
  postLineChar >
  preLineChar >
  preLineLen >
  postLineLen >
  preBlanks = 0
}
alt_plaintext.10.marks.CONTENT >
alt_plaintext.10.marks.CONTENT = COA
alt_plaintext.10.marks.CONTENT {
  10 < styles.content.get
  10.renderObj = < lib.alt_plaintext.renderObj
  20 < styles.content.getBorder
  20.renderObj = < lib.alt_plaintext.renderObj
}
 
alt_plaintext_test.10.marks.CONTENT < alt_plaintext.10.marks.CONTENT
```

Template:

```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="fileadmin/template/main/res/newsletter.css">
</head>

<body>
<!-- ###DOCUMENT_BODY### start-->
<div id="position">
  <div id="logo">
    <a href="#"><img src="fileadmin/template/main/images/logo_content.gif" width="300" height="38" alt="Tanto Portal Solutions"/></a>
  </div>
  <div id="image"><img src="fileadmin/template/main/images/foto_head.jpg" width="250" height="112"/></div>
  <div id="claim">
  Bla Bla Bla
  </div>
  <div id="ruler"></div>
  <div id="content">###CONTENT###</div>
  <div id="copyright">
    Firma
  </div>
</div>
<!-- ###DOCUMENT_BODY### stop-->
</body>
</html>
```

Schätze ich habe irgendwas gelöscht, was ich nicht hätte tun sollen ;o).

Kann jemand helfen?

Danke,
Claudia

## Antworten

### [#2](https://www.typo3.net/d/21872-newsletter-template-content-wird-nicht-eingebunden/2) · claudia3 · 2005-03-01

So, konnte mir selbst helfen.
Hatte in mein Template nur die im Tutorial angegebenen
Templates

cSet (default)
und
plugin.alt.plaintext(99)

inkludiert.

Den Imhalt von
template;NEWSLETTER

hatte ich ja direkt in mein Template eingetragen.

Fehlte das Template das für den Content zuständig ist (und wahrscheinlich normalerweise in template;NEWSLETTER eingebunden).
In meinem Fall CSS Styled Content.

Gruß,
Claudia

---

Quelle: „Newsletter Template - Content wird nicht eingebunden“, typo3.net, https://www.typo3.net/d/21872-newsletter-template-content-wird-nicht-eingebunden
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
