---
title: "Content normal / Content rechts"
url: "https://www.typo3.net/d/31700-content-normal-content-rechts"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2005-10-14"
last_reply: "2005-10-17"
replies: 5
solved: false
page: 1
pages: 1
lang: "de"
---

# Content normal / Content rechts

Allgemein · 5 Antworten · gestartet 2005-10-14

## Eröffnungsbeitrag

**Gsicht** · 2005-10-14 · [Beitrag #1](https://www.typo3.net/d/31700-content-normal-content-rechts/1)

Hallo

Eigentlich recht peinlich, aber ich kriege das mit den verschiedenen Contentspalten (trotz Studiums verschiedener Threads) nicht hin. Der Marker content wird ersetzt, der Marker content_right jedoch nicht. Hier der TS-Code:

```typoscript
// --- SET UP TEMPLATE SELECTOR -----------------------------------------------

plugin.tx_rlmptmplselector_pi1 {

// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/
templatePathSub = fileadmin/templates/sub/

// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = Temp.html
defaultTemplateFileNameSub = einspaltig.html

// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1

#######################################

# Template type. Default is "main". Allowed values: "main", "sub"
templateType = main

# Refers to the default template object to use
# if no value is set for the current page
defaultTemplateObjectMain = 10
defaultTemplateObjectSub = 10


# Contains TEMPLATE objects for TS mode (vs. external HTML file mode)
templateObjects.main =
templateObjects.sub =
}

// --- CONFIGURE THE AUTOMAKETEMPLATE EXTENSION --------------------------
plugin.tx_automaketemplate_pi1 {

content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY

HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title

TD.all = 1
DIV.all = 1
}

relPathPrefix = fileadmin/templates/
}

// --- CREATE TS TEMPLATES FOR MAIN AND CONTENT AREA ------------------

temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}

temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {

template =< plugin.tx_automaketemplate_pi1

// Modify the template selector config: This is a sub template!
template.content.templateType = sub

workOnSubpart = DOCUMENT_BODY
subparts.content < styles.content.get
}

temp.mainTemplate = TEMPLATE
temp.mainTemplate {

template =< plugin.tx_automaketemplate_pi1

// Modify the template selector config: This is a main template!
template.content.templateType = main
template.content.templateType = fileadmin/templates/main/Temp.html
workOnSubpart = DOCUMENT_BODY
subparts.content-normal < temp.contentAreaTemplate
}

#MENUS
[...]
 
temp.mainTemplate.subparts.content = CONTENT
temp.mainTemplate.subparts.content.table = tt_content
temp.mainTemplate.subparts.content.select.pidInList = this
temp.mainTemplate.subparts.content.select.orderBy = sorting
temp.mainTemplate.subparts.content.select.where = colPos=0
temp.mainTemplate.subparts.content.select.languageField=sys_language_uid

temp.temp.mainTemplate.subparts.content_right = CONTENT
temp.temp.mainTemplate.subparts.content_right.table = tt_content
temp.temp.mainTemplate.subparts.content_right.select.pidInList = this
temp.temp.mainTemplate.subparts.content_right.select.orderBy = sorting
temp.temp.mainTemplate.subparts.content_right.select.where = colPos=2
temp.temp.mainTemplate.subparts.content_right.select.languageField=sys_language_uid

page.stylesheet = fileadmin/templates/bnstyle.css
page.shortcutIcon = fileadmin/templates/favicon.ico
page.headerData.999 = TEXT
page.headerData.999.value (
   <script src="/fileadmin/templates/print.js" type="text/javascript"></script>
)
page.bodyTag  (
  <body background="/fileadmin/pics/wallpaper.gif" marginheight="0" topmargin="0" vspace="0" marginwidth="0" leftmargin="0" hspace="0" style="margin:0">
)
page.target = _top



page = PAGE
page.typeNum = 0
page.20 < temp.mainTemplate 
page.20.target = _top

config.simulateStaticDocuments = 1
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config.index_enable = 1
config.enable_externals = 1
config.language = de

lib.stdheader.5.wrap = |:<br />
lib.stdheader.10.1.fontTag=<b>|</b>
lib.stdheader.10.2.fontTag=<b>|</b>
lib.stdheader.10.3.fontTag=<b>|</b>
lib.stdheader.10.4.fontTag=<b>|</b>
```

Und hier (vereinfacht) das HTML-Template:

```html
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td id="content">###CONTENT_LEFT###</td>
        <td><img src="/fileadmin/pics/pixel.gif" width="5" alt="" /></td>
        <td id="content_right" align="right">###CONTENT_RIGHT###</td>
    </tr>
</table>
```

Was mache ich bloss falsch?

Danke im Voraus für jede Hilfe  :)

-Gsicht

## Antworten

### [#2](https://www.typo3.net/d/31700-content-normal-content-rechts/2) · humpun · 2005-10-14

page.10 {
 ..

marks {

LINKS  < styles.content.getLeft
NORMAL < styles.content.get
RECHTS  < styles.content.getRight

}
}

Das wäre es schon gewesen.

Bzw. schau dir mal folgendes an :
[/faq/content-ausgeben](https://www.typo3.net/faq/content-ausgeben)

Schöne Grüße

humpun

### [#3](https://www.typo3.net/d/31700-content-normal-content-rechts/3) · Gsicht · 2005-10-14

> **humpun schrieb:**
>
> page.10 {
>  ..
>
> marks {
>
> LINKS  < styles.content.getLeft
> NORMAL < styles.content.get
> RECHTS  < styles.content.getRight
>
> }
> }
>
> Das wäre es schon gewesen.
>
> Bzw. schau dir mal folgendes an :
> [/faq/content-ausgeben](https://www.typo3.net/faq/content-ausgeben)
>
> Schöne Grüße
>
> humpun

Danke für die Antwort, aber das habe ich schon angeschaut und ausprobiert, kein Effekt. Der Content in der rechten Spalte wird immer noch nicht ausgegeben.

-Gsicht

### [#4](https://www.typo3.net/d/31700-content-normal-content-rechts/4) · humpun · 2005-10-14

Dann füg mal folgendes in dein TypoScript Setup ein:

Habs mal an dei nTemplate angepasst :

page.20.marks.CONTENT_RIGHT < styles.content.get
 page.20.marks.CONTENT_RIGHT {
    select.orderBy = sorting
    select.where = colpos=2
 }

Das sollte funktionieren.

humpun

### [#5](https://www.typo3.net/d/31700-content-normal-content-rechts/5) · Gsicht · 2005-10-14

> **humpun schrieb:**
>
> Dann füg mal folgendes in dein TypoScript Setup ein:
>
> Habs mal an dei nTemplate angepasst :
>
> page.20.marks.CONTENT_RIGHT < styles.content.get
>  page.20.marks.CONTENT_RIGHT {
>     select.orderBy = sorting
>     select.where = colpos=2
>  }
>
> Das sollte funktionieren.
>
> humpun

Tut es aber nicht. Der Browser gibt weiterhin unbeeindruckt den Marker ###CONTENT_RIGHT### aus  :'(

-Gsicht

### [#6](https://www.typo3.net/d/31700-content-normal-content-rechts/6) · CrocodileR · 2005-10-17

Und das hier?

```typoscript
subparts.content_right < styles.content.getRight
```

Das dann direkt unter

```typoscript
subparts.content < styles.content.get
```

Das sollte eigentlich funktionieren.

Wenn du ja schon hier mit den subparts arbeitest, musst (und solltest) du ja nicht unbedingt später mit marks arbeiten.

Dadurch, dass du ja die automaketemplate-Extension nutzt, kannst du dir die Sache mit den Markern sparen.

Ich hoffe, das hilft.

Viele Grüße,

CrocodileR

---

Quelle: „Content normal / Content rechts“, typo3.net, https://www.typo3.net/d/31700-content-normal-content-rechts
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
