Zum Inhalt springen

mehr als 4 Inhaltsbereiche? wie?

Erstellt am 2. September 2003 · 32 Antworten · letzte Antwort am 9. Februar 2005 · Seite 1 von 2

Tags: Templates & Layouts, Frage

Schmoozer ·

Wie oben schon von Dander gepostet:

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

in den TS-Config bereich in den Benutzeroptionen schreiben.

voss ·

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

Schmoozer ·

Im Setup, wie bei den anderen auch,
mit :

marks.NAME <styles.content.getRight

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

voss ·

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

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 !

Dander ·

mit meinem script von oben

$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

doku ·

@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? 😉

Dander ·
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

Dander ·

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

MFG

Dander

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

voss ·

@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. 😃

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 
/** 
* 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 :

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

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

doku ·

korrigier erstmal mal deinen code

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

voss ·

upsi, danke

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

Dander ·

hast du auch in die localconf.php
das da :

$typo_db_extTableDef_script = 'extTables.php';

reigeschrieben??

MFG

Dander

voss ·

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

Dander ·

vielleicht kann typo3 nur 5 spalten anzeigen versuch mal

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

MFG

Dander

voss ·

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

$typo_db_extTableDef_script = 'extTables.php';

dann in der extTables.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:

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

mfg voss

Dander ·

ok sorry hab gepennt muss so aussehen

<?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