aber ist ein gut strukturierter auftritt
??? welcher auftritt ???
aber ist ein gut strukturierter auftritt
??? welcher auftritt ???
naja wird wohl für einen internetauftritt sein oda nicht??
MFG
Dander
P.S:nicht alles was ich sage ist ernst gemeint
@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
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
korrigier erstmal mal deinen code
$$TCA['tt_content']['columns']['colPos']['config']['items'][1][0]='NEU1:';
upsi, danke
habs berichtigt, allerdings ändert das nichts daran, das die spalte nicht angezeigt wird.
hast du auch in die localconf.php
das da :
$typo_db_extTableDef_script = 'extTables.php';
reigeschrieben??
MFG
Dander
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
vielleicht kann typo3 nur 5 spalten anzeigen versuch mal
mod.SHARED.colPos_list = 1,2,3,4,5
MFG
Dander
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
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
cool das geht
1000 dank 😃
mfg voss
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?
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:
-------------------------
Header
-------------------------
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
-------------------------
Footer
-------------------------
Du musst du die datei in der das template für die spalten hinterlegt ist änderm
MFG
Dander
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
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
es ging doch gar nicht mehr um 7 spalten sondern um die anordnung der
spalten ( bzw. das layout )