Hallo,
versuche seit Tagen mein TS so zum Laufen zu bekommen dass mir je nach Inhalt 2 verschiedene Templates gewählt werden. Aber rgendwie läuft die if.isTrue nicht richtig. Es wird nur die 2te (also die if.isFalse) verwendet. Der Inhaltsmarker der das ganze aktivieren soll heisst module1.
Aber hier mal ein Auszug noch aus meiner extTables.php damit keine Unklarheiten aufkommen:
PHP-Code:
t3lib_extMgm::addPageTSConfig('mod.SHARED.colPos_list = 0,1,2,3,4,5,6,7,8,9');
$TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
"0" => array ("2colleft||2ColLeft||||||||","0"),
"1" => array ("2colright||2ColRight||||||||","1"),
"4" => array ("module1||Modul1||||||||","4"),
"5" => array ("module2||Modul2||||||||","5"),
"6" => array ("module3||Modul3||||||||","6"),
);
Und hier mal mein TScript:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32:
| seite = PAGE seite { typeNum = 0 bodyTag = <body onload=""> includeCSS.file1000 = fileadmin/templates/2-3col/css/main.css meta.AUTHOR = D4Media.eu meta.DESCRIPTION = Cordless Radio config.doctype = xhtml_strict 10 = COA 10 { if.isTrue.numRows < styles.content.module1 10 = TEMPLATE 10 { template = FILE template.file = fileadmin/templates/2-3col/index.html <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/tscript/template_marker.ts" > } } 20 = COA 20 { if.isFalse.numRows < styles.content.module1 10 = TEMPLATE 10 { template = FILE template.file = fileadmin/templates/2-3col/index2.html <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/tscript/template_marker.ts" > } } } |