folgendes script (aus dem tutorial übernommen) funktioniert bei mir nicht -> erzeugt nur eine leere Seite...
Hoffe, ihr könnt mir helfen
html-template (gespeichert unter fileadmin/template/main/template_1.html:sad:
HTML-Code:
<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="#internalStyle" type="text/css"?> <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head><!--###DOCUMENT_HEADER### begin--> <title>Base template, header, menu, content and footer.</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style> <link href="res/stylesheet.css" rel="stylesheet" type="text/css" /> <!--###DOCUMENT_HEADER### end--></head> <body><!--###DOCUMENT_BODY### begin--> <table border="0" cellpadding="0" cellspacing="0"> <!-- Header image row: --> <tr> <td colspan="2" id="header_1"><!--###header_1### begin--><img src="http://www.typo3forum.net/forum/images/headerimage.jpg" width="600" height="100" alt="" border="0" /><!--###header_1### end--></td> </tr> <tr> <!-- Menu table cell: --> <td id="menu_1"><!--###menu_1### begin--> <div class="menu1-level1-no"><a href="#">Menu item 1</a></div> <div class="menu1-level1-no"><a href="#">Menu item 2</a></div> <div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div> <div class="menu1-level2-no"><a href="#">Level 2 item</a></div> <div class="menu1-level2-no"><a href="#">Level 2 item</a></div> <div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div> <div class="menu1-level1-no"><a href="#">Menu item 2</a></div> <!--###menu_1### end--></td> <!-- Page Content Area table cell: --> <td id="content"><!--###content### begin--> <h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1> <img src="http://www.typo3forum.net/forum/images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/> <p class="bodytext">Adam Seth Enos Cainan Malelehel Iared Enoch Matusale Lamech Noe Sem Ham et Iafeth filii Iafeth Gomer Magog Madai et Iavan Thubal Mosoch Thirasporro filii Gomer Aschenez et Rifath et Thogorma filii autem Iavan Elisa et Tharsis Cetthim et Dodanim.</p> <p class="bodytext">Filii Ham Chus et Mesraim Phut et Chanaan filii autem Chus Saba et Evila Sabatha et Rechma et Sabathaca porro filii Rechma Saba et Dadan Chus autem genuit Nemrod iste coepit esse potens in terra Mesraim vero genuit Ludim et Anamim et Laabim et Nepthuim Phethrosim quoque et Chasluim de quibus egressi sunt Philisthim et Capthurim Chanaan vero genuit Sidonem primogenitum et Heth Iebuseum quoque et Amorreum et Gergeseum Evheumque et Aruceum et Asineum Aradium quoque et Samareum et Ematheum filii Sem Aelam et Assur et Arfaxad et Lud et Aram et Us et Hul et Gothor et Mosoch Arfaxad autem genuit Sala qui et ipse genuit Heber porro Heber nati sunt duo filii nomen uni Phaleg quia in diebus eius divisa est terra et nomen fratris eius Iectan Iectan autem genuit Helmodad et Saleph et Asermoth et Iare Aduram quoque et Uzal et Decla Ebal etiam et Abimahel et Saba necnon et Ophir et Evila et Iobab omnes isti filii Iectan Sem Arfaxad Sale Heber Phaleg Raau Serug Nahor Thare Abram iste est Abraham filii autem Abraham Isaac et Ismahel et hae generationes eorum primogenitus Ismahelis Nabaioth et Cedar et Adbeel et Mabsam </p> <br /> <!--###content### end--></td> </tr> <!-- Footer row: --> <tr> <td colspan="2" id="footer"><!--###footer### begin--> <p>Main Dish & Son inc. * 12345 Tricky Road, suite 9998 * Boston</p> <!--###footer### end--></td> </tr> </table> <!--###DOCUMENT_BODY### end--></body> </html> 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: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93:
| plugin.tx_automaketemplate_pi1 { content = FILE content.file = fileadmin/template/main/template_1.html elements { BODY.all = 1 BODY.all.subpartMarker = DOCUMENT_BODY HEAD.all = 1 HEAD.all.subpartMarker = DOCUMENT_HEADER HEAD.rmTagSections = title TD.all = 1 } relPathPrefix = fileadmin/template/main/ } temp.mainTemplate = TEMPLATE temp.mainTemplate { template =< plugin.tx_automaketemplate_pi1 workOnSubpart = DOCUMENT_BODY subparts.menu_1 = TEXT subparts.menu_1.value = HELLO WORLD - MENU subparts.content = TEXT subparts.content.value = HELLO WORLD - CONTENT } temp.headTemplate = TEMPLATE temp.headTemplate { template =< plugin.tx_automaketemplate_pi1 workOnSubpart = DOCUMENT_HEADER } page = PAGE page.typeNum = 0 page.10 < temp.mainTemplate page.headerData.10 < temp.headTemplate |