Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 27.07.06, 16:17
Forum Zuschauer
 
Registriert seit: 27.07.06
Beiträge: 7

problem mit: moderne templateerstellung, Teil1


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 &amp; 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:
# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:

content = FILE

content.file = fileadmin/template/main/template_1.html

    # Here we define which elements in the HTML that

    # should be wrapped in subpart-comments:

elements {

BODY.all = 1

BODY.all.subpartMarker = DOCUMENT_BODY

HEAD.all = 1

HEAD.all.subpartMarker = DOCUMENT_HEADER

HEAD.rmTagSections = title

TD.all = 1

}

    # Prefix all relative paths with this value:

relPathPrefix = fileadmin/template/main/

}

# Main TEMPLATE cObject for the BODY

temp.mainTemplate = TEMPLATE

temp.mainTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <body>-tags

workOnSubpart = DOCUMENT_BODY

    # Substitute the ###menu_1### subpart with some example content:

subparts.menu_1 = TEXT

subparts.menu_1.value = HELLO WORLD - MENU

    # Substitute the ###content### subpart with some example content:

subparts.content = TEXT

subparts.content.value = HELLO WORLD - CONTENT

}

# Main TEMPLATE cObject for the HEAD

temp.headTemplate = TEMPLATE

temp.headTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <head>-tags

workOnSubpart = DOCUMENT_HEADER

}

# Default PAGE object:

page = PAGE

page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:

page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:

page.headerData.10  < temp.headTemplate

Geändert von surfdog (28.07.06 um 10:28 Uhr).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Wo liegen die Beispiel daten für "Moderne Templateerstellung" amiga1200 TYPO3 4.x Installation und Updates 1 08.08.08 20:21
Moderne Templateerstellung versus TemplaVoila solei TemplaVoila 0 08.02.08 09:28
Moderne Templateerstellung: Template wird nicht interpretiert scatterbrain TYPO3 4.x Backend 2 09.10.07 07:07
Verzweifelt gesucht: DL von Beipiel Dateien aus "Moderne Templateerstellung" Salino Forum Bar 0 12.10.06 19:02
Frage zum Tutorial "Moderne Templateerstellung Teil 1" Stoffel TYPO3 3.x Fragen und Probleme 0 25.07.05 00:02


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:49 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0