---
title: "mehr als 4 Inhaltsbereiche? wie?"
url: "https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Templates & Layouts"]
created: "2003-09-02"
last_reply: "2005-02-09"
replies: 32
solved: false
page: 1
pages: 1
lang: "de"
---

# mehr als 4 Inhaltsbereiche? wie?

TYPO3 › TypoScript · 32 Antworten · gestartet 2003-09-02

## Eröffnungsbeitrag

**heikoseifert** · 2003-09-02 · [Beitrag #1](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/1)

gibt es eine Möglichkeit die Bereiche Links, normal, rechts und Rand umbennennen?

Diese Bezeichnungen passen auf meine Seite nicht.

und da wir gerade dabei sind, ich benötige noch einen fünften Bereich für nicht-Statische Elemente. Hat jemand eine Ahnung, wie ich diese erstellen kann?

Ich habe schon erfahren, daß ich eine extensions schreiben muß, leider bin ich da noch nicht so firm, vielleicht kann mir jemand, der es geschafft hat, mehr als 4 Contentbereiche bei sich zu erstellen kurz eine Anleitung geben. Ich würde zu diesem Thema dann auch ein Howto schreiben. Bitte helft mir.

etwas sollte folgendes helfen:
<http://typo3.org/1422+M5dacda8b327.0.html>
leider verstehe ich es nicht ganz.
eine solche Datei hab ich erstellt und ins ext-verzeichnis geschoben, was aber muß ich machen um diese Datei anzusprechen?

> **jemand anderes schrieb:**
>
> Scenario:
> Is there a way that the content columns in the backend can be renamed?
>
> I want to change their name since the names "Left, Normal, Right &
> Border" would not really fit to my template.
>
> Answer:
> Yes, of course. You only have to modify the TCA. What's the TCA?
> Well, that's a big array containing all the information to build the backend forms for certain tables. The table's form layout you want to modify is
> tt_content.
>
> Just create a little extension with the kickstarter an then add the following lines into a file called "ext_tables.php". Save that file into your extension's directory.
>
> t3lib_div::loadTCA("tt_content");
>
> $TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
> "3" => array ("Header||Überschrift||||||||","3"),
> "2" => array ("Image||Bild||||||||","2"),
> "1" => array ("Introduction||Einleitung||||||||","1"),
> "0" => array ("Text||Text||||||||","0"),
> "4" => array ("News||News||||||||","4")
> );
>
> Notice that the column's labels have the old-style language wrap format.
> That means that the label for each language is defined in *one* string and
> separated by the | sign.
>
> My example contains even more than the four standard-columns. But defining
> the number and order of columns is done elsewhere (have a look into the
> TSconfig
> manual, section "MOD").

## Antworten

### [#2](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/2) · Dander · 2004-02-12

In "localconf.php" folgende zeile adden

```php
$typo_db_extTableDef_script = 'extTables.php';
```

und dann die datei "extTables.php" erstellen mit folgendem code:

```php
<?php
/**
* Extension script.
*
* You are strongly recommended to use the distributed tables.php file found in t3lib/install/tables.php. 
* However extending and/or modifying the content of tables.php is done with scripts like this. 
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder. 
* Extensions are movable to other Typo3 installations and provides a much better division between things! Use them!
*
* Information on how to set up tables is found in the document "Inside Typo" available as a PDF from where you downloaded Typo3.
*/


/**
* This adds an extra tt_content column (colPos=4), before the last column (Border):
* The function array_splice works directly on the input array!
*/
t3lib_div::loadTCA('tt_content'); // Make sure the whole tt_content configuration is loaded, before we can modify it!


if (is_array($TCA['tt_content'])) {
array_splice(
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items
-1, // To insert one position from the end of the list
0, // Don't remove any items, just insert
array(array('Extra Column|Ekstra kolonne',4)) // Element to be inserted. Value is '4' and language is specified for english and danish.
);
}


$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='NEU1:';
$TCA['tt_content']['columns']['colPos']['config']['items'][2][0]='NEU2:';
$TCA['tt_content']['columns']['colPos']['config']['items'][0][0]='NEU3:';
$TCA['tt_content']['columns']['colPos']['config']['items'][3][0]='NEU4:';
$TCA['tt_content']['columns']['colPos']['config']['items'][4][0]='NEU5:';
?>
```

[0][1][2][3] stehen für normal,links,rechts und rand
und NEU1 usw. sind die neuen namen

Um die 5. ebene mit dem namen NEU5 anzuzeigen musst du im
TS-Config follgendes eintragen:
mod.SHARED.colPos_list = 0,1,2,3,4,5

### [#3](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/3) · Zed412 · 2004-04-01

Hy Leute,

ich habe da gerade eine Extension und ein kleines HowTo dafür gebastelt.
Zu finden ist das Ganze auf Typo3.org, die Extension heißt zed_more_columns.

Lg

Zed 8-)

### [#4](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/4) · Stoneage · 2004-04-05

Cool!

### [#5](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/5) · Flo P.​ · 2004-04-05

vielen dank,

habe es schon in verwendung klappt super. habe noch mehr columns gebraucht - auch das ist kein problem. einfach in der ext_tables in dem extension ordner den array erweitern. für alle die noch mehr brauchen ;)

grüße,

flo

### [#6](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/6) · voss · 2004-07-01

hum so richtig klappen will des mit der extention nicht, hab sie runtergeladen und installiert, aber angezeigt werden die weiteren spalten nicht, muss ich da vielleicht noch beim typoscript oder bei den constanten was einschreiben ?

wenn ja, wäre es schön, wenn ihr ma postet was und wo

des weiteren würde mich dann mal interessieren, wie ich dann die inhalte der spalten ins template bekomme.

vorher wa es ja so:

```typoscript
page.10.marks.LINK = CONTENT 
page.10.marks.LINK < styles.content.get
```

wie ist es jetzt? und wie werden dann die neuen Spalten bezeichnet ?

bin für jede antwort dankbar

### [#7](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/7) · Schmoozer · 2004-07-01

Wie oben schon von Dander gepostet:

```typoscript
mod.SHARED.colPos_list = 0,1,2,3,4,5,...
```

in den TS-Config bereich in den Benutzeroptionen schreiben.

### [#8](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/8) · voss · 2004-07-01

und wie kriege ich das dann hin, das ich einem marker genau diese spalte zurodne ?

### [#9](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/9) · Schmoozer · 2004-07-01

Im Setup, wie bei den anderen auch,
mit :

```typoscript
marks.NAME <styles.content.getRight
```

bei getRight den namen angeben, den du der neuen Spalte gegeben hast.
z.B.: getSpalte

### [#10](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/10) · Zed412 · 2004-07-02

Hy voss,

hast Du schon mal einen Blick auf die Deutsche Anleitung für die Extension geworfen? In der Anleitung wird u.a. die Konfiguration genau beschrieben. Das gute Ding ist unter <http://com.hoelblinger.net/index.php?id=98> zu finden.

Lg

Zed  8-)

### [#11](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/11) · voss · 2004-07-02

ich hab die anleitung gesucht, aber hatte sie nicht gefunden.
ich werde jetzt mal ausprobieren, ob es bei mir funktioniert.  :D

edit:

hat funktioniert, allerdings kriege ich das nicht hin, noch eine spalte hinzuzufügen  :o

kann mir vielleicht jemand die nötigen datein so modifizieren, das ich 6 Spalten habe ?

bisher werden nur 5 angezeigt, die ich benutzen kann, allerdings benötige ich 6.

wenn es nicht zu viele umstände macht.
wäre nett.

danke schonmal im vorraus !

### [#12](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/12) · voss · 2004-07-02

keiner ne idee ?

hiiiilfe  o.O

### [#13](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/13) · Dander · 2004-07-02

mit meinem script von oben

```php
$TCA['tt_content']['columns']['colPos']['config']['items'][5][0]='NEU6:';
```

noch unter die letzte spalte

und dann
mod.SHARED.colPos_list = 0,1,2,3,4,5

MFG

Dander

### [#14](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/14) · doku · 2004-07-02

@voss:
ich werde das unbestimmte gefühl nicht los, daß du denkst, du bräuchtest für jedes inhaltselement das du einfügen möchtest, eine eigene backendspalte...

hab ich gewonnen?  ;)

### [#15](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/15) · Dander · 2004-07-02

> **doku schrieb:**
>
> @voss:
> ich werde das unbestimmte gefühl nicht los, daß du denkst, du bräuchtest für jedes inhaltselement das du einfügen möchtest, eine eigene backendspalte...
>
> hab ich gewonnen?  ;)

lol

1. Platz

aber ist ein gut strukturierter auftritt

### [#16](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/16) · doku · 2004-07-02

> aber ist ein gut strukturierter auftritt

??? welcher auftritt ???

### [#17](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/17) · Dander · 2004-07-02

naja wird wohl für einen internetauftritt sein oda nicht??

MFG

Dander

P.S:nicht alles was ich sage ist ernst gemeint

### [#18](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/18) · voss · 2004-07-12

@doku

das hast du richtig erkannt, da ich ansonsten zwischen den einzelnen inhalten ein HTML element oder etwas derartiges ainfügen muss, was dann allerdings unübersichtlich wird.

ich wollte das so machen, das ich meine 6 marker in dem template habe und diese dann halt ganz normal ersetze.  :D

ps:

@ dander: habs so eingefügt, wie du gesagt hast, nur wird die spalte trotzdem nicht angezeigt. (ist dann auch die lezte benötigte spalte  ;) )

```php
<?php 
/** 
* Extension script. 
* 
* You are strongly recommended to use the distributed tables.php file found in t3lib/install/tables.php. 
* However extending and/or modifying the content of tables.php is done with scripts like this. 
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder. 
* Extensions are movable to other Typo3 installations and provides a much better division between things! Use them! 
* 
* Information on how to set up tables is found in the document "Inside Typo" available as a PDF from where you downloaded Typo3. 
*/ 


/** 
* This adds an extra tt_content column (colPos=4), before the last column (Border): 
* The function array_splice works directly on the input array! 
*/ 
t3lib_div::loadTCA('tt_content'); // Make sure the whole tt_content configuration is loaded, before we can modify it! 


if (is_array($TCA['tt_content'])) { 
array_splice( 
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items 
-1, // To insert one position from the end of the list 
0, // Don't remove any items, just insert 
array(array('Extra Column|Ekstra kolonne',4)) // Element to be inserted. Value is '4' and language is specified for english and danish. 
); 
} 


$$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='NEU1:'; 
$TCA['tt_content']['columns']['colPos']['config']['items'][2][0]='Rechts:'; 
$TCA['tt_content']['columns']['colPos']['config']['items'][0][0]='Links:'; 
$TCA['tt_content']['columns']['colPos']['config']['items'][3][0]='Aussen:'; 
$TCA['tt_content']['columns']['colPos']['config']['items'][4][0]='Rand:';
$TCA['tt_content']['columns']['colPos']['config']['items'][5][0]='NEU6:'; 
?>
```

und :

```typoscript
mod.SHARED.colPos_list = 0,1,2,3,4,5
```

### [#19](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/19) · voss · 2004-07-12

ich habe gerade gesehen, das ich in der spalte einen inhalt anlegen kann unzwar über: "Neuer Inhalt" dann halt was fürn inhalt und dann die spalte, die dort auch angezeigt wird aber ohne bezeichnung.
und normal, wenn ich auf die seite im backend komme, wo die spalten mit den inhalten angezeigt werden, sind alle spalten ausser halt diese eine dargestellt...
ich brauche die dort aber dargestellt, da ich diese ja später auch wieder bearbeiten möchte...

wäre cool, wenn mir da geholfen werden kann

### [#20](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/20) · doku · 2004-07-12

korrigier erstmal mal deinen code

**$**$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='NEU1:';

### [#21](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/21) · voss · 2004-07-12

upsi, danke

habs berichtigt, allerdings ändert das nichts daran, das die spalte nicht angezeigt wird.

### [#22](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/22) · Dander · 2004-07-14

hast du auch in die localconf.php
das da :

```php
$typo_db_extTableDef_script = 'extTables.php';
```

reigeschrieben??

MFG

Dander

### [#23](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/23) · voss · 2004-07-15

ja das hab ich gemacht. wenn ich in der extTables.php z.B. die namen der spalten ändere, dann macht er des auch. also übernimmt er des aus der datei auch, aber wie gesagt, die 6te spalte will er nicht.  o.O

### [#24](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/24) · Dander · 2004-07-15

vielleicht kann typo3 nur 5 spalten anzeigen versuch mal

```typoscript
mod.SHARED.colPos_list = 1,2,3,4,5
```

MFG

Dander

### [#25](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/25) · voss · 2004-07-15

da zeigt er dann wieder nur 4 spalten an, wo vorher halt schon 5 waren.

ich schreibe nochmal, was genau ich wo drin habe, vielleicht is das ja dann übersichtlicher.

in der localconf.php

```php
$typo_db_extTableDef_script = 'extTables.php';
```

dann in der extTables.php

```php
<?php 
/** 
* Extension script. 
* 
* You are strongly recommended to use the distributed tables.php file found in t3lib/install/tables.php. 
* However extending and/or modifying the content of tables.php is done with scripts like this. 
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder. 
* Extensions are movable to other Typo3 installations and provides a much better division between things! Use them! 
* 
* Information on how to set up tables is found in the document "Inside Typo" available as a PDF from where you downloaded Typo3. 
*/ 


/** 
* This adds an extra tt_content column (colPos=4), before the last column (Border): 
* The function array_splice works directly on the input array! 
*/ 
t3lib_div::loadTCA('tt_content'); // Make sure the whole tt_content configuration is loaded, before we can modify it! 


if (is_array($TCA['tt_content'])) { 
array_splice( 
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items 
-1, // To insert one position from the end of the list 
0, // Don't remove any items, just insert 
array(array('Extra Column|Ekstra kolonne',5)) // Element to be inserted. Value is '4' and language is specified for english and danish. 
); 
} 


$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='Normal:';
$TCA['tt_content']['columns']['colPos']['config']['items'][2][0]='Rechts:';
$TCA['tt_content']['columns']['colPos']['config']['items'][0][0]='Links:';
$TCA['tt_content']['columns']['colPos']['config']['items'][3][0]='Aussen:';
$TCA['tt_content']['columns']['colPos']['config']['items'][4][0]='Rand:';
$TCA['tt_content']['columns']['colPos']['config']['items'][5][0]='Hinten:';
?>
```

und im TypoScript:

```typoscript
mod.SHARED.colPos_list = 0,1,2,3,4,5
```

mfg voss

### [#26](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/26) · Dander · 2004-07-15

ok sorry hab gepennt muss so aussehen

```php
<?php 
/** 
* Extension script. 
* 
* You are strongly recommended to use the distributed tables.php file found in t3lib/install/tables.php. 
* However extending and/or modifying the content of tables.php is done with scripts like this. 
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder. 
* Extensions are movable to other Typo3 installations and provides a much better division between things! Use them! 
* 
* Information on how to set up tables is found in the document "Inside Typo" available as a PDF from where you downloaded Typo3. 
*/ 


/** 
* This adds an extra tt_content column (colPos=4), before the last column (Border): 
* The function array_splice works directly on the input array! 
*/ 
t3lib_div::loadTCA('tt_content'); // Make sure the whole tt_content configuration is loaded, before we can modify it! 


if (is_array($TCA['tt_content'])) { 
array_splice( 
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items 
-1, // To insert one position from the end of the list 
0, // Don't remove any items, just insert 
array(array('Extra Column|Ekstra kolonne',4)) // Element to be inserted. Value is '4' and language is specified for english and danish. 
); 
} 
if (is_array($TCA['tt_content'])) { 
array_splice( 
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items 
-1, // To insert one position from the end of the list 
0, // Don't remove any items, just insert 
array(array('Extra Column2|Ekstra kolonne2',5)) // Element to be inserted. Value is '4' and language is specified for english and danish. 
); 
} 


$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='NEU1:'; #NORMAL 
$TCA['tt_content']['columns']['colPos']['config']['items'][2][0]='NEU2:'; #RIGHT 
$TCA['tt_content']['columns']['colPos']['config']['items'][0][0]='NEU3:'; #LEFT
$TCA['tt_content']['columns']['colPos']['config']['items'][5][0]='NEU6:'; #extra2
$TCA['tt_content']['columns']['colPos']['config']['items'][4][0]='NEU4:'; #BORDER
$TCA['tt_content']['columns']['colPos']['config']['items'][3][0]='NEU5:'; #extra

?>
```

MFG

Dander

### [#27](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/27) · voss · 2004-07-15

cool das geht

1000 dank  :D

mfg voss

### [#28](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/28) · arillus · 2004-07-20

die Zwei Scripts funken ja ganz gut.

Ich hab nun das Problem, daß ich im einen Teil der Seite andere Spaltenbezeichnungen brauche als im anderen.
Kann ich das irgendwo mit angeben?

### [#29](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/29) · LineMan · 2004-07-20

was mich noch interessieren würde in diesem zusammenhang...

wie bekommt man es nun hin das backend auch so aufzuteilen wie das frontend... also nicht alle splaten nebeneinander zu haben, sondern meinetwegen header oben, dann navigation, dann maincontent, dann rightcontent, und footer dann darunter?

hab ja irgendwo gesehen, dass das geht...

also so:

```plaintext
-------------------------
Header
-------------------------
|    |            |     |
|    |            |     |
|    |            |     |
|    |            |     |
|    |            |     |
|    |            |     |
|    |            |     |
-------------------------
Footer
-------------------------
```

### [#30](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/30) · Dander · 2004-07-21

Du musst du die datei in der das template für die spalten hinterlegt ist änderm

MFG

Dander

### [#31](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/31) · Dander · 2004-07-21

ich hab mal kurz nachgeschaut ,

theoretisch müsst es in
typo3/systext/cms/db_layout.php stehen aber ich hab es noch nüscht gefunden^^
vielleicht hast du ja mehr erfolg

MFG

Dander

### [#32](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/32) · Kalendin · 2005-02-09

Zu dem script von voss

naja genauer genommen must du ja auch noch das "array_splice" wiederhohlen. geht vielleicht auch in einer anweisung? Ich bin nicht so firm in php. aber hier mal mein script ohne comments für 7.Spalten. Ja ich weiss wozu braucht man das?? shit egal ich brauchs halt :-).
hier mal mein script für 7 Spalten:

<?php

if (is_array($TCA['tt_content'])) {
array_splice(
$TCA['tt_content']['columns']['colPos']['config']['items'],
-1,
0,
array(array('Extra Column|Ekstra kolonne',4))
);

array_splice(
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items
-1,
0,
array(array('Extra Columni1|Ekstra kolonne1',5))
);

array_splice(
$TCA['tt_content']['columns']['colPos']['config']['items'], // The list of items
-1,
0, array(array('Extra Column2|Ekstra kolonne2',6))
);

}

$TCA['tt_content']['columns']['colPos']['config']['items'][0][0]='links2';
$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='links1';
$TCA['tt_content']['columns']['colPos']['config']['items'][2][0]='mitte1';
$TCA['tt_content']['columns']['colPos']['config']['items'][3][0]='rechts1';
$TCA['tt_content']['columns']['colPos']['config']['items'][4][0]='rechts2';
$TCA['tt_content']['columns']['colPos']['config']['items'][5][0]='rand';
$TCA['tt_content']['columns']['colPos']['config']['items'][6][0]='mitte2';

?>

und dann

mod.SHARED.colPos_list = 0,1,2,3,4,5,6

### [#33](https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie/33) · Dander · 2005-02-09

es ging doch gar nicht mehr um 7 spalten sondern um die anordnung der
spalten ( bzw. das layout )

---

Quelle: „mehr als 4 Inhaltsbereiche? wie?“, typo3.net, https://www.typo3.net/d/5412-mehr-als-4-inhaltsbereiche-wie
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
