---
title: "Nur normaler Content funktioniert!?"
url: "https://www.typo3.net/d/23834-nur-normaler-content-funktioniert"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2005-04-19"
last_reply: "2005-04-22"
replies: 26
solved: false
page: 1
pages: 1
lang: "de"
---

# Nur normaler Content funktioniert!?

Allgemein · 26 Antworten · gestartet 2005-04-19

## Eröffnungsbeitrag

**Fabian-K** · 2005-04-19 · [Beitrag #1](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/1)

Hallo,

ich bin dabei ein Template fuer typo3 zu entwickeln.

Ich habe Part1 des 'Moderne Template erstellung' durch,
allerdings wird dort ja nur beschrieben wie man ein 'normalen' content einfuegt.

Wie allerdings fuege ich rechts/links/am rand ein Content ein?

Das Content an sich existiert, aber es wird nicht angezeigt.

Wie gesagt: Es sind nur Contents sichtbar, die sich in der Mitte der Seite befindet (also 'Normal').

Hier also mal meine Main Template-Setup:

```typoscript
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
 
    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1
 
    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get

}
 
 
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
 
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
 
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
```

Hier meine HTML-Seite:

```xml
<?xml version="1.0" excoding="iso.8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EM"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transidional.dtd">
<html>
<head>
	<title>Base template, header, menu, content and footer.</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {  margin: 0 0 0 0; background-color: white; }
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="2" id="header_1"><img src="images/headerimage.jpg" width="600" height="100" alt="" border="0" /></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
		</td>

		<!-- Page Content Area table cell: -->
		<td id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<br />
		</td>
	</tr>
	
		<!-- Footer row: -->
	<tr>
		<td colspan="2" id="footer">
			<p>Main Dish &amp; Son inc. * 12345 MuhKuh City, suite 1337 * Hannover</p>
		</td>
	</tr>
	</table>
</body>
</html>
```

Was muss ich tun, um auch 'linke' oder 'rechte' oder wie auch immer andere contents anzuzeigen?

Danke schonmal im Voraus ;)

mfg
fabian-k

P.S.:
Da es gerade etwas eilt, kann ich mir leider nicht erst alle tutorials durchlesen, dazu habe ich im Moment (!!) leider keine zeit :( Ich hoffe ihr koennt das verstehen. Danke.

## Antworten

### [#2](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/2) · lynatic · 2005-04-19

Hallo!

setze auch rechts (in einer eigenen tabelle) einen marker, bsp: ###RECHTS###

+ setup:

```typoscript
RECHTS = CONTENT
RECHTS {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}
```

### [#3](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/3) · webdeveloper · 2005-04-19

jip.

mini-tutorial findest du unter
> www.plug-one.de/show_content_lrb.html

### [#4](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/4) · bajun · 2005-04-19

Bin zwar auch noch kein Profi...aber das ist leicht zu finden......

Steht hier...... <http://www.typo3forum.de/viewtopic.php?t=23065&sid=005fdb22e2ce53ce744e9e496b5c1d34>

Das hatte ich schon vor Wochen durch.... #giggle#

### [#5](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/5) · Fabian-K · 2005-04-19

Hi,
danke erstmal fuer die antworten, aber

lynatic:
Wenn ich den kram in meinen setup poste, dann wird in dem rechten Content falscher inhalt angezeigt :(
(Es wird der Inhalt aus dem 'Normal'-Content angezeigt)

bajun:
Mh das is nich das was ich suche :(
Da ich anfaenger bin braeuchte ich einen Beispielcode, so wie das von lynatic.. :(

webdeveloper:
Mh ja gut.. aber ich habe kein

```typoscript
page.10 < styles.content.get
```

:(

### [#6](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/6) · webdeveloper · 2005-04-19

> **lynatic schrieb:**
>
> Hallo!
>
> setze auch rechts (in einer eigenen tabelle) einen marker, bsp: ###RECHTS###
>
> + setup:
>
> ```typoscript
> RECHTS = CONTENT
> RECHTS {
> table = tt_content
> select.orderBy = sorting
> select.where = colPos = 2
> }
> ```

der code ist nciht für copy+paste gedacht...

da fehlt jeweils das "seite."

das was du brauchst, sieht final so aus:

```typoscript
seite = PAGE
seite {
  typeNum = 0
  bodyTag = <body>
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/template.html
  10.workOnSubpart = DOKUMENT
  10.marks {
    RECHTS < temp.rechts
    LINKS < temp.links
  }
}
```

lege nun ein neues template an.

```typoscript
temp.rechts = CONTENT
temp.rechts {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}
```

das template musst du dann nur noch in dein master/root template integrieren.

dies machst du über den punkt
**Click here to edit whole template record**, dann runter bis **Include basis template:**.
dort fügst du dein neues template (z.b. + temp.rechts) hinzu.

hoffe das war jetzt verständlich, habe z.zt. nur wenig zeit...
ausführlicher kann ich dir heute abend helfen, wenn du es jetzt nicht schaffst.

### [#7](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/7) · Unbekannter Benutzer · 2005-04-19

Du hast Objekte denen Du was zuordnest. Am einfachsten machst Du das bei Text, in dem Du statische Templates einbindest.

D.h.:
statische Templates einbinden: z.b. content (default) und cSet stylesheet.

Dann: Marker in Deiner HTML Vorlage setzen (CONTENT, CONTENT_RIGHT, CONTENT_LEFT)

Die Marker dann bedienen mit styles.content.get, styles.content.getRight, styles.content.getLeft)
Dann brauchst Du Dich nicht mit colPos etc. herumschlagen. Der Zuweisungsoperator ist <

Viele Grüße
Niki

NACHTRAG: Oder Du machst es so wie webdeveloper schreibt :) Waren wir wohl gleichzeitig.

### [#8](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/8) · Fabian-K · 2005-04-19

Hey :)
Werde sicherlich darauf zurueckkommen ;)

Naja werde jetz mal mein bestes geben und das mal ausprobieren..

Danke erstmal :)

### [#9](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/9) · Fabian-K · 2005-04-19

So,
da ich es natuerlich NICHT hinbekommen habe (schade :( ) hier nochmal meine aktuelle Template-Setup (ist in 3 teile aufgeteilt, die ins Haupt-Template geladen werden.)

```typoscript
ext: Main TEMPLATE cObject
----------------------------------------
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
 
    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1
 
    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get

}
 
 
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
 
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
 
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
----------------------------------------
----------------------------------------


ext: Menu 1
----------------------------------------
# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

  # Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level3-act"> | </div>
}

  # Fourth level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level4-act"> | </div>
}
----------------------------------------
----------------------------------------

ext: Auto-parser plugin
----------------------------------------
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html
 
    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
 
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
 
    TD.all = 1
  }
 
    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}
```

Es existiert auch das ###RECHTS### in der HTML-Seite..

Aber irgendwie will das alles nich so wie ich das ausprobiert hatte :(
Kann mir jemand sagen wo was da rein muss?

Momentan wird im 'Rechts'-Bereich der template-datei halt automatisch der Kram aus dem 'Normal'-bereich angezeigt :-/

### [#10](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/10) · webdeveloper · 2005-04-19

Ich glaub 18Std pro Tag am Rechner sitzen macht blind...

Wo steht der Marker rechts?? Also im TS

### [#11](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/11) · Fabian-K · 2005-04-19

In einer Extra-Spalte auf der rechten Seite.

Hier die aktuelle Template-Source :)

```xml
<?xml version="1.0" excoding="iso.8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EM"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transidional.dtd">
<html>
<head>
	<title>Base template, header, menu, content and footer.</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {  margin: 0 0 0 0; background-color: white; }
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="3" id="header_1"><img src="images/headerimage.jpg" width="600" height="100" alt="" border="0" /></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td width="200" id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
		</td>

		<!-- Page Content Area table cell: -->
		<td width="460" id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<br />
		</td>
	    <td width="160">###RECHTS###</td>
	</tr>
	
		<!-- Footer row: -->
	<tr>
		<td colspan="3" id="footer">
			<p>Main Dish &amp; Son inc. * 12345 MuhKuh City, suite 1337 * Hannover</p>
		</td>
	</tr>
	</table>
</body>
</html>
```

###RECHTS### is das

//Nachtrag:
Ah hatte das mit der id="content" uebersehen.
(<td width="160" id="content">###RECHTS###</td>)

Jetzt momentan steht in der Augabedatei rechts nur '###RECHTS###' und das moechte ich so schnell wie moeglich mit Inhalt gefuellt bekommen, also was muss ich dafuer tun?

Danke :)

### [#12](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/12) · webdeveloper · 2005-04-19

dann hast du den marker in T3 nicht ersetzt, oder - wenn du es mit einem neuen template gemacht hast  - dieses nicht in den master eingebunden...

check das ganze mal, ob gib mir/uns einen zugang zu deinem T3.....

### [#13](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/13) · Fabian-K · 2005-04-20

Mh das problem is dass die ganze kiste local auf nem apache in meiner Firma steht.. Und die kiste is halt nicht ans Internet (solange es nicht richtig laeuft; ist nen Auftrag vom chef) angebunden, also kann ich da niemanden dran 'rumspielen' lassen :(

Zum Thema:
Es ging ja darum wie man mit T3 den Marker ersetzt, also was genau ich da reinschreiben muss damit es ersetzt wird :)

Ich wuerde das ganze testweise einfach mal in ein neues Template (also T4) einfuegen und an das Root-Template anhaengen.
Nur was ich in das neue template eingeben soll, DAS ist es was ich nicht weiss.

### [#14](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/14) · webdeveloper · 2005-04-20

Morgen Fabian,

schau mal meinen Post etwas weiter oben an.
Da steht, WAS du im root template schreibst, und WAS in das neue Template geschrieben wird ;)

wer lesen kann, ..... du weisst schon *g*

### [#15](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/15) · Fabian-K · 2005-04-20

Moin :)

Ja das habe ich ja jetzt alles,
aber es wird mir nur eine leere Seite angezeigt.
Verweise (zur Templatedatei etc.) sind alle korrekt angelegt.

Aber wie gesagt:
Ich habe nur eine leere weisse Seite :(

Ich habe jetzt die html-Seite (siehe oben), das Root-Template mit folgendem Inhalt

```typoscript
seite = PAGE 
seite { 
  typeNum = 0 
  bodyTag = <body> 
  10 = TEMPLATE 
  10.template = FILE 
  10.template.file = fileadmin/main/template_1.html 
  10.workOnSubpart = DOCUMENT_BODY
  10.marks { 
    RECHTS < temp.rechts 
    LINKS < temp.links 
  } 
}
```

und das T4 mit folgendem Inhalt

```typoscript
temp.rechts = CONTENT 
temp.rechts { 
 table = tt_content 
 select.orderBy = sorting 
 select.where = colPos = 2 
}
```

T4 is beim Root-Template eingebunden,
allerdings ist (wie gesagt) nur eine weisse Seite zu sehen.

### [#16](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/16) · webdeveloper · 2005-04-20

```typoscript
10.workOnSubpart = DOCUMENT_BODY
```

Hast du in deinem Template auch

```html
<!-- DOCUMENT_BODY -->
```

gesetzt?

### [#17](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/17) · Fabian-K · 2005-04-20

So, also es muss irgendwie an dem Body-Kram liegen, denn der Titel der Seiten wird korrekt angezeigt..

### [#18](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/18) · webdeveloper · 2005-04-20

dann poste doch mal das template hier ;)

vllt. haste ja ne klammer net geschlossen, oder aber nen kommentar durchlaufen lassen. *who knows*

### [#19](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/19) · Fabian-K · 2005-04-20

Also, hier nochmal ALLES was ich an source habe:

Root-Template

```typoscript
seite = PAGE 
seite { 
  typeNum = 0 
  bodyTag = <body> 
  10 = TEMPLATE 
  10.template = FILE 
  10.template.file = fileadmin/template/main/template_1.html 
  10.workOnSubpart = DOCUMENT_BODY
  10.marks { 
    RECHTS < temp.rechts 
    #LINKS < temp.links 
  }
}
```

ext: Main TEMPLATE cObject:

```typoscript
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
 
    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1
 
    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get

}
 
 
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
 
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
 
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
```

ext: Menu 1

```typoscript
# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

  # Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level3-act"> | </div>
}

  # Third level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level4-act"> | </div>
}
```

ext: Auto-parser plugin

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html
 
    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
 
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
 
    TD.all = 1
  }
 
    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}
```

temp.rechts

```typoscript
temp.rechts = CONTENT 
temp.rechts { 
 table = tt_content 
 select.orderBy = sorting 
 select.where = colPos = 2 
}
```

So, das waren jetz die Template-Datein.
Alle Templates sind in das erste Template (Root-Template) verlinkt.
Reihenfolge:
 ext: Auto-parser plugin
 ext: Menu 1
 ext: Main TEMPLATE cObject
 temp.rechts

Hier jetzt meine HTML-Template-Source:

```xml
<?xml version="1.0" excoding="iso.8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EM"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transidional.dtd">
<html>
<head>
	<title>Base template, header, menu, content and footer.</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {  margin: 0 0 0 0; background-color: white; }
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="3" id="header_1"><img src="images/headerimage.jpg" width="600" height="100" alt="" border="0" /></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td width="200" id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
		</td>

		<!-- Page Content Area table cell: -->
		<td width="460" id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<p class="bodytext">jhsdfghjfsdgsdjfghdhfjghdfgdfgkdfhkgdfvbk</p>
			<br />
		</td>
	    <td width="160">###RECHTS###</td>
	</tr>
	
		<!-- Footer row: -->
	<tr>
		<td colspan="3" id="footer">
			<p>Main Dish &amp; Son inc. * 12345 MuhKuh City, suite 1337 * Hannover</p>
		</td>
	</tr>
	</table>
</body>
</html>
```

Ich hoffe da findet jemand was.
Sonst bin ich ehrlich gesagt voll am Arsch!

### [#20](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/20) · webdeveloper · 2005-04-20

wo hast du z.b. *temp.mainTemplate* definiert?? also im root...

nirgendwo, benutzt es aber in ext. ts "Main TEMPLATE cObject"

mal abgesehen davon, dass das root und das main TS sehr viele gemeinsamkeiten haben... (viel doppelt!!)

temp.headTemplate
beispielsweise ist auch nirgends definiert!

das muss alles da rein

```typoscript
  10.marks {
    RECHTS < temp.rechts
    #LINKS < temp.links
  }
```

### [#21](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/21) · Unbekannter Benutzer · 2005-04-20

ich find das eh alles ziemlich umständlich. Kann man natürlich so machen, aber für den ersten Versuch schon bisschen aufwändig.

Warum probierst Du nicht den Weg über die statischen Templates und styles.content.get etc? Damit bringst Du Dein TS Template auf 20% runter womit Du Dich sicher erst mal einfach tust.

Viele Grüße
Niki

### [#22](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/22) · Fabian-K · 2005-04-20

Mh solange es funktioniert ist mir erstmal egal wie ich das mache!!!!!!!

Aber wie laeuft das mit dem statischen?
Wo finde ich da ein Tutorial?
Mein Haupt-problem sind halt die Links/Normal/Rechts/Rand-Contents, also wie ich die anzeigen lasse, also wie genau da der TypoScript-Source lauten muss.

(Wenn es fuer den Anfang einfacher is, isses natuerlich besser. Denn es muss so schnell wie moeglich fertig werden..)

### [#23](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/23) · Unbekannter Benutzer · 2005-04-20

blätter mal eine Seite zurück da habe ich den Vorschlag schon mal gemacht.

> D.h.:
> statische Templates einbinden: z.b. content (default) und cSet stylesheet.
>
> Dann: Marker in Deiner HTML Vorlage setzen (CONTENT, CONTENT_RIGHT, CONTENT_LEFT)
>
> Die Marker dann bedienen mit styles.content.get, styles.content.getRight, styles.content.getLeft)
> Dann brauchst Du Dich nicht mit colPos etc. herumschlagen. Der Zuweisungsoperator ist <

Statische Templates einbinden kannst Du nach Klick auf "edit whole template record" und da gibts dann eine Möglichkeit zu.

Viele Grüße
Niki

### [#24](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/24) · Fabian-K · 2005-04-20

Hi!
Sorry hab ich wohl ueberlesen, sorry.. werde es wohl erstmal so loesen und dann auf die 'komplexe' version zurueckkehren sobald es erstmal laeuft und ich mich tiefer mit typo3 beschaeftigen kann..

Danke erstmal @ all :)

### [#25](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/25) · Fabian-K · 2005-04-20

Mh das laeuft jetz alles auch erstmal (helbwegs) recht stabil!

Vielen, Vielen Dank!

### [#26](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/26) · webdeveloper · 2005-04-20

morgen solltest du es dann richtig stabil machen... und übermorgen die sache mit den templates (auslagern) lernen :)

### [#27](https://www.typo3.net/d/23834-nur-normaler-content-funktioniert/27) · Fabian-K · 2005-04-22

Yawohl, Meister!
Danke nochmal :)

Mh mittwoch abend muss die Seite online sein.. mh.. langsam mach ich mir echt in die Hose wegen dem zeitdruck o.O  o.O

Naja ich schaff das schon irgendwie.. notfalls darf ich nicht Schlafen  ;)

Naja danke nochmal an euch alle :)

---

Quelle: „Nur normaler Content funktioniert!?“, typo3.net, https://www.typo3.net/d/23834-nur-normaler-content-funktioniert
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
